app/models/adminpanel/user.rb in adminpanel-0.0.4 vs app/models/adminpanel/user.rb in adminpanel-0.0.5
- old
+ new
@@ -3,9 +3,10 @@
attr_accessible :email, :name, :password, :password_confirmation
has_secure_password
#name validations
validates_presence_of :name
+ validates_length_of :name, :maximum => 25
#password validations
validates_confirmation_of :password
validates_presence_of :password
validates_length_of :password, :minimum => 6
\ No newline at end of file