Permalink
Browse files

Merge pull request #2042 from igor04/master

Deleted unnecessary validation in generator mongoid model
  • Loading branch information...
2 parents f7dd598 + d59301e commit 8c7bf7dd15afab50fd59f47bc56883d77fb2ebe9 @josevalim josevalim committed Sep 13, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/generators/mongoid/devise_generator.rb
@@ -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

0 comments on commit 8c7bf7d

Please sign in to comment.