method
new

new(old_const, new_const, deprecator = ActiveSupport::Deprecation.instance, message: "#{old_const} is deprecated! Use #{new_const} instead.")
public
Hide source
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 126 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