Add registerable to defaults.

This commit is contained in:
José Valim 2010-02-15 13:59:36 +01:00
parent 3435c53725
commit 085b12a710
2 changed files with 2 additions and 2 deletions

View File

@ -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 File

@ -145,7 +145,6 @@ module Devise
def find_for_authentication(conditions)
find(:first, :conditions => conditions)
end
end
end
end