Class: DebugExtras::FastBetterErrors
- Inherits:
-
Object
- Object
- DebugExtras::FastBetterErrors
- Defined in:
- lib/debug_extras/middleware/fast_better_errors.rb
Overview
based on github.com/charliesome/better_errors/issues/341 proposals
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ FastBetterErrors
constructor
A new instance of FastBetterErrors.
Constructor Details
#initialize(app) ⇒ FastBetterErrors
Returns a new instance of FastBetterErrors.
4 5 6 |
# File 'lib/debug_extras/middleware/fast_better_errors.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 |
# File 'lib/debug_extras/middleware/fast_better_errors.rb', line 8 def call(env) env["puma.config"]...delete(:app) if env.has_key?("puma.config") @app.call env end |