Class: Errlog::ContextMiddleware
- Inherits:
-
Object
- Object
- Errlog::ContextMiddleware
- Defined in:
- lib/errlog/rails_controller_extensions.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ContextMiddleware
constructor
A new instance of ContextMiddleware.
Constructor Details
#initialize(app) ⇒ ContextMiddleware
Returns a new instance of ContextMiddleware.
122 123 124 |
# File 'lib/errlog/rails_controller_extensions.rb', line 122 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
126 127 128 129 130 |
# File 'lib/errlog/rails_controller_extensions.rb', line 126 def call(env) Errlog.clear_context status, headers, body = @app.call(env) [status, headers, body] end |