method
new
v6.1.7.7 -
Show latest stable
-
0 notes -
Class: ActiveSupport::Deprecation::DeprecatedConstantProxy
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 131 def initialize(old_const, new_const, deprecator = ActiveSupport::Deprecation.instance, message: "#{old_const} is deprecated! Use #{new_const} instead.") Kernel.require "active_support/inflector/methods" @old_const = old_const @new_const = new_const @deprecator = deprecator @message = message end