Class: Dispatch::Rails::Middleware
- Inherits:
-
Object
- Object
- Dispatch::Rails::Middleware
- Defined in:
- lib/dispatch/rails/middleware.rb
Overview
Innermost Rack middleware: it wraps the app directly, so an unhandled exception is seen here (with the full request env, including the controller instance for user resolution) before any exception-rendering middleware. We capture and re-raise — never swallow.
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.
8 9 10 |
# File 'lib/dispatch/rails/middleware.rb', line 8 def initialize(app) @app = app end |