Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add registerable to defaults.

  • Loading branch information...
commit 085b12a7101d9f9782f0a9ddce9e8c6a446ffa4a 1 parent 3435c53
@josevalim josevalim authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.