method
new
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveSupport::Deprecation::DeprecatedObjectProxy
new(object, message, deprecator = nil)
public
Hide 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