Module: Authentication::Logic::ControllerAdapters::SinatraAdapter::Adapter::Implementation
- Defined in:
- lib/auth/logic/controller_adapters/sinatra_adapter.rb
Overview
Mixed into ‘Sinatra::Base`
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/auth/logic/controller_adapters/sinatra_adapter.rb', line 56 def self.included(klass) klass.send :before do controller = Controller.new(request, response) Authentication::Logic::Session::Base.controller = Adapter.new(controller) end end |