Skip to content

Commit

Permalink
Better user validations
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvio Relli committed Oct 27, 2011
1 parent d244ea2 commit 9675d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/user.rb
Expand Up @@ -17,8 +17,8 @@ class User < ActiveRecord::Base
validates :email, :presence => true, :uniqueness => true
validates :firstname, :presence => true
validates :lastname, :presence => true
validates :password, :presence => true
validates :password_confirmation, :presence => true
validates :password, :presence => true, :length => { :minimum => 8 }
validates :password_confirmation, :presence => true, :length => { :minimum => 8 }


def set_default_values
Expand Down

0 comments on commit 9675d62

Please sign in to comment.