new(deprecation_horizon = "7.2", gem_name = "Rails")
public
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')
# File activesupport/lib/active_support/deprecation.rb, line 68
def initialize(deprecation_horizon = "7.2", 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 = Concurrent::ThreadLocalVar.new(0)
@explicitly_allowed_warnings = Concurrent::ThreadLocalVar.new(nil)
end