Class: Devise::Hooks::Proxy
- Inherits:
-
Object
- Object
- Devise::Hooks::Proxy
- Includes:
- Controllers::Rememberable, Controllers::SignInOut
- Defined in:
- lib/devise/hooks/proxy.rb
Overview
A small warden proxy so we can remember, forget and sign out users from hooks.
Instance Attribute Summary collapse
-
#warden ⇒ Object
readonly
Returns the value of attribute warden.
Instance Method Summary collapse
-
#initialize(warden) ⇒ Proxy
constructor
A new instance of Proxy.
- #session ⇒ Object
Methods included from Controllers::SignInOut
#bypass_sign_in, #sign_in, #sign_out, #sign_out_all_scopes, #signed_in?
Methods included from Controllers::Rememberable
cookie_values, #forget_cookie_values, #forget_me, #remember_cookie_values, #remember_key, #remember_me, #remember_me_is_active?
Constructor Details
#initialize(warden) ⇒ Proxy
Returns a new instance of Proxy.
12 13 14 |
# File 'lib/devise/hooks/proxy.rb', line 12 def initialize(warden) @warden = warden end |
Instance Attribute Details
#warden ⇒ Object (readonly)
Returns the value of attribute warden.
9 10 11 |
# File 'lib/devise/hooks/proxy.rb', line 9 def warden @warden end |
Instance Method Details
#session ⇒ Object
16 17 18 |
# File 'lib/devise/hooks/proxy.rb', line 16 def session warden.request.session end |