Sha256: 5f386ba85edbeba9be9637d1a5244bd1e3f256047f8117d96e976aa2eb96d00b
Contents?: true
Size: 670 Bytes
Versions: 26
Compression:
Stored size: 670 Bytes
Contents
require "timber/integration" require "timber/integrations/rack/error_event" require "timber/integrations/action_dispatch/debug_exceptions" module Timber module Integrations # Module for holding *all* ActionDispatch integrations. This module does *not* # extend {Integration} because it's dependent on {Rack::ExceptionEvent}. This # module simply disables the exception tracking middleware so that our middleware # works as expected. module ActionDispatch def self.enabled? Rack::ErrorEvent.enabled? end def self.integrate! return false if !enabled? DebugExceptions.integrate! end end end end
Version data entries
26 entries across 26 versions & 1 rubygems