mirror of
https://github.com/heartcombo/devise.git
synced 2026-02-18 02:21:38 -05:00
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:
@@ -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)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class User < ActiveRecord::Base
|
||||
devise :all
|
||||
devise :all, :timeoutable
|
||||
attr_accessible :username, :email, :password, :password_confirmation
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user