Permalink
Browse files

Add registerable to defaults.

  • Loading branch information...
1 parent 3435c53 commit 085b12a7101d9f9782f0a9ddce9e8c6a446ffa4a @josevalim josevalim committed Feb 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −1 generators/devise/templates/model.rb
  2. +0 −1 lib/devise/models/authenticatable.rb
View
3 generators/devise/templates/model.rb
@@ -1,7 +1,8 @@
class <%= class_name %> < ActiveRecord::Base
# Include default devise modules.
# Others available are :lockable, :timeoutable and :activatable.
- devise :authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable
+ devise :registerable, :authenticatable, :confirmable, :recoverable,
+ :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation
View
1 lib/devise/models/authenticatable.rb
@@ -145,7 +145,6 @@ def encryptor_class
def find_for_authentication(conditions)
find(:first, :conditions => conditions)
end
-
end
end
end

0 comments on commit 085b12a

Please sign in to comment.