Module: HanamiId::Warden::ActionHelper

Defined in:
lib/hanami_id/warden/app_helper.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/hanami_id/warden/app_helper.rb', line 17

def self.included(base)
  base.configure do
    use ::Warden::Manager do |manager|
      manager.default_strategies :password
      manager.failure_app = HanamiId.failure_app
    end
  end
end