Module: Timber::Integrations::ActionDispatch
- Defined in:
- lib/timber-rails/action_dispatch.rb,
lib/timber-rails/action_dispatch/debug_exceptions.rb
Overview
Module for holding all ActionDispatch integrations. This module simply disables the exception tracking middleware so that our middleware works as expected.
Defined Under Namespace
Classes: DebugExceptions
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
9 10 11 |
# File 'lib/timber-rails/action_dispatch.rb', line 9 def self.enabled? Rails::ErrorEvent.enabled? end |
.integrate! ⇒ Object
13 14 15 16 17 |
# File 'lib/timber-rails/action_dispatch.rb', line 13 def self.integrate! return false if !enabled? DebugExceptions.integrate! end |