Module: RescueRegistry::ActionDispatch::ShowExceptions
- Defined in:
- lib/rescue_registry/action_dispatch/show_exceptions.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/rescue_registry/action_dispatch/show_exceptions.rb', line 9 def call(*args) warn "Didn't expect RescueRegistry context to be set in middleware" if RescueRegistry.context super ensure RescueRegistry.context = nil end |
#initialize(*args) ⇒ Object
4 5 6 7 |
# File 'lib/rescue_registry/action_dispatch/show_exceptions.rb', line 4 def initialize(*args) super @exceptions_app = RescueRegistry::ExceptionsApp.new(@exceptions_app) end |