Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
changs committed Mar 26, 2012
1 parent dff5cc8 commit 5c8a716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class User < ActiveRecord::Base
validates :username, presence: true, length: { maximum: 20 },
uniqueness: { case_sensitive: false }
validates :fullname, presence: true, length: { maximum: 30 }
validates :email, format: { with: email_regex },
uniqueness: { case_sensitive: false }, length: { maximum: 30 }
validates :password, length: { in: 5..25 }, :on => :creation
validates :email, presence: true, format: { with: email_regex },
uniqueness: { case_sensitive: false }
validates :password, length: { in: 5..25 }

def generate_token(column)
begin
Expand Down

0 comments on commit 5c8a716

Please sign in to comment.