Skip to content
This repository
Newer
Older
100644 34 lines (31 sloc) 1.203 kb
29089bf6 » fxn
2012-04-05 revises requires of some AS deprecation files
1 require 'active_support/core_ext/module/deprecation'
71993c6f » LTe
2012-09-13 Change ActiveSupport::Deprecation to class.
2 require 'active_support/deprecation/instance_delegator'
727e9dc1 » jeremy
2009-04-17 Dice up ActiveSupport::Deprecation
3 require 'active_support/deprecation/behaviors'
4 require 'active_support/deprecation/reporting'
5 require 'active_support/deprecation/method_wrappers'
6 require 'active_support/deprecation/proxy_wrappers'
71993c6f » LTe
2012-09-13 Change ActiveSupport::Deprecation to class.
7 require 'singleton'
6ca6c5de » jeremy
2006-09-04 set ActiveSupport::Deprecation.debug = true to see backtraces for dep…
8
7692191f » NZKoz
2006-07-27 Initial Version of Deprecation for Rails[Koz]
9 module ActiveSupport
8692db59 » rafaelfranca
2012-09-13 Copy-edit deprecation relared documentation [ci skip]
10 # \Deprecation specifies the API used by Rails to deprecate methods, instance
11 # variables, objects and constants.
71993c6f » LTe
2012-09-13 Change ActiveSupport::Deprecation to class.
12 class Deprecation
13 include Singleton
14 include InstanceDelegator
15 include Behavior
16 include Reporting
17 include MethodWrapper
18
19 # The version the deprecated behavior will be removed, by default.
20 attr_accessor :deprecation_horizon
7d017781 » jeremy
2006-08-01 Deprecation: easier to work with warning behavior as procs; default b…
21
71993c6f » LTe
2012-09-13 Change ActiveSupport::Deprecation to class.
22 # It accepts two parameters on initialization. The first is an version of library
23 # and the second is an library name
24 #
25 # ActiveSupport::Deprecation.new('2.0', 'MyLibrary')
26 def initialize(deprecation_horizon = '4.1', gem_name = 'Rails')
27 self.gem_name = gem_name
28 self.deprecation_horizon = deprecation_horizon
29 # By default, warnings are not silenced and debugging is off.
30 self.silenced = false
31 self.debug = false
32 end
7692191f » NZKoz
2006-07-27 Initial Version of Deprecation for Rails[Koz]
33 end
2c690a0f » paneq
2011-07-25 extend ActiveSupport::Deprecation with self, allow other objects to e…
34 end
Something went wrong with that request. Please try again.