Sha256: 7f7cfd62eb23f247045433f876d5500b4090fadb036642e5f43b0ea361af9478
Contents?: true
Size: 1010 Bytes
Versions: 1
Compression:
Stored size: 1010 Bytes
Contents
require 'deprecation/behaviors' require 'deprecation/reporting' require 'deprecation/method_wrappers' require 'active_support/concern' require 'deprecation/core_ext/module/deprecation' module Deprecation extend ActiveSupport::Concern def deprecation_horizon= horizon @deprecation_horizon = horizon end def deprecation_horizon @deprecation_horizon end def silenced @silenced end alias_method :silenced?, :silenced def silenced= bool @silenced = bool end def debug @debug end alias_method :debug?, :debug def debug= bool @debug = bool end def self.logger @logger ||= if defined?(Rails) && Rails.logger Rails.logger else require 'active_support/logger' ActiveSupport::Logger.new($stderr) end end def self.logger= value @logger = value end included do class << self end # By default, warnings are not silenced and debugging is off. self.silenced = false self.debug = false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deprecation-0.1.0 | lib/deprecation.rb |