Class: ActiveKit::Position::Middleware
- Inherits:
-
Object
- Object
- ActiveKit::Position::Middleware
- Defined in:
- lib/active_kit/position/middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
4 5 6 |
# File 'lib/active_kit/position/middleware.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/active_kit/position/middleware.rb', line 8 def call(env) request = ActionDispatch::Request.new(env) middleware_run(request) do @app.call(env) end end |