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