Class: Rack::Logjam::Rails::Middleware
- Inherits:
-
Object
- Object
- Rack::Logjam::Rails::Middleware
- Defined in:
- lib/rack/logjam/rails/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.
9 10 11 |
# File 'lib/rack/logjam/rails/middleware.rb', line 9 def initialize( app ) @app = app end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/rack/logjam/rails/middleware.rb', line 13 def call( env ) before env app.call( env ).tap do |rack_response| after env, *rack_response end end |