class method
self.new
Ruby on Rails 7.1.6
Since v2.2.3Signature
self.new(object, message, deprecator = nil)
No documentation comment.
Parameters
-
objectreq -
messagereq -
deprecatoropt = nil
Source
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 39
def initialize(object, message, deprecator = nil)
@object = object
@message = message
ActiveSupport.deprecator.warn("DeprecatedObjectProxy without a deprecator is deprecated") unless deprecator
@deprecator = deprecator || ActiveSupport::Deprecation._instance
end
Defined in activesupport/lib/active_support/deprecation/proxy_wrappers.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::DeprecatedObjectProxy