class method
self.new
Ruby on Rails 6.0.6
Since v4.0.13Signature
self.new(old_const, new_const, deprecator = ActiveSupport::Deprecation.instance, message: "#{old_const} is deprecated! Use #{new_const} instead.")
No documentation comment.
Parameters
-
old_constreq -
new_constreq -
deprecatoropt = ActiveSupport::Deprecation.instance -
messagekey = "#{old_const} is deprecated! Use #{new_const} instead."
Source
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 131
def initialize(old_const, new_const, deprecator = ActiveSupport::Deprecation.instance, message: "#{old_const} is deprecated! Use #{new_const} instead.")
require "active_support/inflector/methods"
@old_const = old_const
@new_const = new_const
@deprecator = deprecator
@message = message
end
Defined in activesupport/lib/active_support/deprecation/proxy_wrappers.rb line 131
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::DeprecatedConstantProxy