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.1.7 lib/timber/integrations/rails.rb
timber-2.1.6 lib/timber/integrations/rails.rb
timber-2.1.5 lib/timber/integrations/rails.rb
timber-2.1.4 lib/timber/integrations/rails.rb
timber-2.1.3 lib/timber/integrations/rails.rb
timber-2.1.2 lib/timber/integrations/rails.rb
timber-2.1.1 lib/timber/integrations/rails.rb
timber-2.1.0 lib/timber/integrations/rails.rb
timber-2.1.0.rc6 lib/timber/integrations/rails.rb
timber-2.1.0.rc5 lib/timber/integrations/rails.rb
timber-2.1.0.rc4 lib/timber/integrations/rails.rb
timber-2.1.0.rc3 lib/timber/integrations/rails.rb
timber-2.1.0.rc2 lib/timber/integrations/rails.rb
timber-2.1.0.rc1 lib/timber/integrations/rails.rb