Sha256: 0aff2abc2f7c1d40a4ad4659168bb948c733a2cf24b0119dec9483b7cab7880a
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
if defined? ActiveSupport module Logging # Rails compatibility module. # # The ActiveSupport gem adds a few methods to the default Ruby logger, and # some Rails extensions expect these methods to exist. Those methods are # implemented in this module and included in the Logging::Logger class when # the ActiveSupport gem is present. # module RailsCompat # A no-op implementation of the +silence+ method. Setting of log levels # should be done during the Logging configuration. It is the author's # opinion that overriding the log level programmaticaly is a logical # error. # # Please see https://github.com/TwP/logging/issues/11 for a more detail # discussion of the issue. # def silence( *args ) yield self end end # RailsCompat Logger.send :include, RailsCompat end # Logging end # if defined?
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logging-1.6.1 | lib/logging/rails_compat.rb |