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

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

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



49
50
51
52
53
54
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 49

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