class method
self.new
Ruby on Rails edge
Since v4.0.13Signature
self.new(deprecation_horizon = "9.0", gem_name = "Rails")
It accepts two parameters on initialization. The first is a version of library and the second is a library name.
“‘ ActiveSupport::Deprecation.new(’2.0’, ‘MyLibrary’) “‘
Parameters
-
deprecation_horizonopt = "9.0" -
gem_nameopt = "Rails"
Source
# File activesupport/lib/active_support/deprecation.rb, line 80
def initialize(deprecation_horizon = "9.0", gem_name = "Rails")
self.gem_name = gem_name
self.deprecation_horizon = deprecation_horizon
# By default, warnings are not silenced and debugging is off.
self.silenced = false
self.debug = false
@silence_counter_key = :"active_support_deprecation_silence_counter_#{object_id}"
@explicitly_allowed_warnings_key = :"active_support_deprecation_explicitly_allowed_warnings_#{object_id}"
end
Defined in activesupport/lib/active_support/deprecation.rb line 80
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation