class Authenticatable::Manager
The middleware for Rack Authentication that injects the authentication session into the rack environment hash.
Public Class Methods
new(app)
click to toggle source
# File lib/authenticatable/manager.rb, line 7 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/authenticatable/manager.rb, line 11 def call(env) env["authenticatable"] = Authenticatable::Proxy.new(env) @app.call(env) end