Sha256: a4fa4c7b16c047d9c97394d134bdb5c6d4bd10f4f7384d70e1524174dd33f302

Contents?: true

Size: 678 Bytes

Versions: 8

Compression:

Stored size: 678 Bytes

Contents

require "timber/integration"
require "timber/integrations/rack/exception_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::ExceptionEvent.enabled?
      end

      def self.integrate!
        return false if !enabled?

        DebugExceptions.integrate!
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
timber-2.1.1 lib/timber/integrations/action_dispatch.rb
timber-2.1.0 lib/timber/integrations/action_dispatch.rb
timber-2.1.0.rc6 lib/timber/integrations/action_dispatch.rb
timber-2.1.0.rc5 lib/timber/integrations/action_dispatch.rb
timber-2.1.0.rc4 lib/timber/integrations/action_dispatch.rb
timber-2.1.0.rc3 lib/timber/integrations/action_dispatch.rb
timber-2.1.0.rc2 lib/timber/integrations/action_dispatch.rb
timber-2.1.0.rc1 lib/timber/integrations/action_dispatch.rb