Module: Timber::Integrations::ActionDispatch
- Defined in:
- lib/timber/integrations/action_dispatch.rb,
lib/timber/integrations/action_dispatch/debug_exceptions.rb
Overview
Module for holding all ActionDispatch integrations. This module does not extend Timber::Integration because it’s dependent on Rack::ExceptionEvent. This module simply disables the exception tracking middleware so that our middleware works as expected.
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
12 13 14 |
# File 'lib/timber/integrations/action_dispatch.rb', line 12 def self.enabled? Rack::ErrorEvent.enabled? end |
.integrate! ⇒ Object
16 17 18 19 20 |
# File 'lib/timber/integrations/action_dispatch.rb', line 16 def self.integrate! return false if !enabled? DebugExceptions.integrate! end |