Class: Auth::Behavior::RememberMe

Inherits:
Base
  • Object
show all
Defined in:
lib/auth/behavior/remember_me.rb

Defined Under Namespace

Modules: ControllerExtensions Classes: Configuration

Instance Method Summary collapse

Methods inherited from Base

#apply_to, apply_to_controllers, migration

Instance Method Details

#apply_to_accounts(model_config) ⇒ Object



10
11
12
13
14
# File 'lib/auth/behavior/remember_me.rb', line 10

def apply_to_accounts(model_config)
  model_config.target.instance_eval do
    has_many :remembrance_tokens, :dependent => :destroy, :as => :authenticatable
  end
end

#apply_to_passwords(password) ⇒ Object



6
7
8
# File 'lib/auth/behavior/remember_me.rb', line 6

def apply_to_passwords(password)
  # no effect
end