2012-04-05 17:33:47 -04:00
|
|
|
require 'active_support/core_ext/module/deprecation'
|
2009-04-18 00:29:30 -04:00
|
|
|
require 'active_support/deprecation/behaviors'
|
|
|
|
require 'active_support/deprecation/reporting'
|
|
|
|
require 'active_support/deprecation/method_wrappers'
|
|
|
|
require 'active_support/deprecation/proxy_wrappers'
|
2006-09-03 23:32:22 -04:00
|
|
|
|
2006-07-26 20:10:06 -04:00
|
|
|
module ActiveSupport
|
2010-12-19 20:50:47 -05:00
|
|
|
module Deprecation
|
2006-07-26 20:10:06 -04:00
|
|
|
class << self
|
2009-04-18 00:29:30 -04:00
|
|
|
# The version the deprecated behavior will be removed, by default.
|
|
|
|
attr_accessor :deprecation_horizon
|
2006-07-26 20:10:06 -04:00
|
|
|
end
|
2011-04-25 13:55:09 -04:00
|
|
|
self.deprecation_horizon = '3.2'
|
2006-08-01 07:12:38 -04:00
|
|
|
|
2009-04-18 00:29:30 -04:00
|
|
|
# By default, warnings are not silenced and debugging is off.
|
2006-09-04 04:28:44 -04:00
|
|
|
self.silenced = false
|
2009-04-18 00:29:30 -04:00
|
|
|
self.debug = false
|
2006-07-26 20:10:06 -04:00
|
|
|
end
|
|
|
|
end
|