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

Version Path
timber-2.6.2 lib/timber/integrations/action_dispatch.rb
timber-2.6.1 lib/timber/integrations/action_dispatch.rb
timber-2.6.0 lib/timber/integrations/action_dispatch.rb
timber-2.6.0.pre.beta2 lib/timber/integrations/action_dispatch.rb
timber-2.6.0.pre.beta1 lib/timber/integrations/action_dispatch.rb
timber-2.5.1 lib/timber/integrations/action_dispatch.rb
timber-2.5.0 lib/timber/integrations/action_dispatch.rb
timber-2.4.0 lib/timber/integrations/action_dispatch.rb
timber-2.3.4 lib/timber/integrations/action_dispatch.rb
timber-2.3.3 lib/timber/integrations/action_dispatch.rb
timber-2.3.2 lib/timber/integrations/action_dispatch.rb
timber-2.3.1 lib/timber/integrations/action_dispatch.rb
timber-2.3.0 lib/timber/integrations/action_dispatch.rb
timber-2.2.3 lib/timber/integrations/action_dispatch.rb
timber-2.2.2 lib/timber/integrations/action_dispatch.rb
timber-2.2.1 lib/timber/integrations/action_dispatch.rb
timber-2.2.0 lib/timber/integrations/action_dispatch.rb
timber-2.1.10 lib/timber/integrations/action_dispatch.rb
timber-2.1.9 lib/timber/integrations/action_dispatch.rb
timber-2.1.8 lib/timber/integrations/action_dispatch.rb