Class: DeviseSessionExpirable::Delegator

Inherits:
Devise::Delegator
  • Object
show all
Defined in:
lib/devise_session_expirable/delegator.rb

Instance Method Summary collapse

Instance Method Details

#failure_app(env) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/devise_session_expirable/delegator.rb', line 4

def failure_app(env)
  app = env["warden.options"] &&
    (scope = env["warden.options"][:scope]) &&
    Devise.mappings[scope.to_sym].failure_app

  app || DeviseSessionExpirable::FailureApp
end