Skip to content

Commit

Permalink
Merge pull request heartcombo#2042 from igor04/master
Browse files Browse the repository at this point in the history
Deleted unnecessary validation in generator mongoid model
  • Loading branch information
José Valim committed Sep 13, 2012
2 parents f7dd598 + d59301e commit 8c7bf7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/generators/mongoid/devise_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ def migration_data
## Database authenticatable
field :email, :type => String, :default => ""
field :encrypted_password, :type => String, :default => ""
validates_presence_of :email
validates_presence_of :encrypted_password
## Recoverable
field :reset_password_token, :type => String
Expand Down

0 comments on commit 8c7bf7d

Please sign in to comment.