Extract Activatable from Confirmable, so if you need to active your account through other means, you can still do so and ensure cherry pick works as expected.

This commit is contained in:
José Valim
2009-12-20 13:53:53 +01:00
parent f26e6a269f
commit e1c2e45f97
16 changed files with 143 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
class Admin < ActiveRecord::Base
devise :all, :except => [:recoverable, :confirmable, :rememberable, :validatable, :trackable]
devise :all, :timeoutable, :except => [:recoverable, :confirmable, :rememberable, :validatable, :trackable]
def self.find_for_authentication(conditions)
last(:conditions => conditions)

View File

@@ -1,4 +1,4 @@
class User < ActiveRecord::Base
devise :all
devise :all, :timeoutable
attr_accessible :username, :email, :password, :password_confirmation
end