Class: DebugExtras::FastBetterErrors

Inherits:
Object
  • Object
show all
Defined in:
lib/debug_extras/middleware/fast_better_errors.rb

Overview

Instance Method Summary collapse

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"].options.user_options.delete(:app) if env.has_key?("puma.config")
  @app.call env
end