Admin namespace beendet.
This commit is contained in:
parent
6ddef7267a
commit
172db1d37e
23 changed files with 78 additions and 193 deletions
|
|
@ -15,7 +15,7 @@ class User < ActiveRecord::Base
|
|||
attr_accessor :password, :setting_attributes
|
||||
|
||||
validates_presence_of :nick, :email
|
||||
validates_presence_of :password_hash, :message => "Password is required."
|
||||
validates_presence_of :password, :on => :create
|
||||
validates_length_of :nick, :in => 2..25
|
||||
validates_uniqueness_of :nick, :case_sensitive => false
|
||||
validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue