Sha256: de1e2a1e9f5af15a7652cfa0cbdc06ad34d6706f1a8424b05d3f5996119d5c75

Contents?: true

Size: 580 Bytes

Versions: 34

Compression:

Stored size: 580 Bytes

Contents

require "timber/integration"
require "timber/integrations/rack/http_events"
require "timber/integrations/rails/rack_logger"

module Timber
  module Integrations
    # Module for holding *all* Rails integrations. This module does *not*
    # extend {Integration} because it's dependent on {Rack::HTTPEvents}. This
    # module simply disables the default HTTP request logging.
    module Rails
      def self.enabled?
        Rack::HTTPEvents.enabled?
      end

      def self.integrate!
        return false if !enabled?

        RackLogger.integrate!
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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