Class: ConciseErrors::DebugExceptions
- Inherits:
-
ActionDispatch::DebugExceptions
- Object
- ActionDispatch::DebugExceptions
- ConciseErrors::DebugExceptions
- Defined in:
- lib/concise_errors/debug_exceptions.rb
Overview
Replacement middleware that keeps the existing API while producing concise output.
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/concise_errors/debug_exceptions.rb', line 12 def call(env) request = ActionDispatch::Request.new(env) return fallback_web_console.call(env) if web_console_request?(request) return fallback_web_console.call(env) if full_error_requested?(request) env["action_dispatch.backtrace_cleaner"] ||= ConciseErrors.configuration.cleaner super end |