module Timber::Integrations::ActionDispatch

Module for holding all ActionDispatch integrations. This module simply disables the exception tracking middleware so that our middleware works as expected.

Public Class Methods

enabled?() click to toggle source
# File lib/timber-rails/action_dispatch.rb, line 9
def self.enabled?
  Rails::ErrorEvent.enabled?
end
integrate!() click to toggle source
# File lib/timber-rails/action_dispatch.rb, line 13
def self.integrate!
  return false if !enabled?

  DebugExceptions.integrate!
end