Module: Authlogic::ControllerAdapters::SinatraAdapter::Adapter::Implementation

Defined in:
lib/authlogic/controller_adapters/sinatra_adapter.rb

Overview

Mixed into ‘Sinatra::Base`

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



55
56
57
58
59
60
# File 'lib/authlogic/controller_adapters/sinatra_adapter.rb', line 55

def self.included(klass)
  klass.send :before do
    controller = Controller.new(request, response)
    Authlogic::Session::Base.controller = Adapter.new(controller)
  end
end