123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::ProxyObject

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: BasicObject
Defined in: activesupport/lib/active_support/proxy_object.rb

Class Method Summary

Instance Method Summary

Class Method Details

.inherited(_subclass)

[ GitHub ]

  
# File 'activesupport/lib/active_support/proxy_object.rb', line 13

def self.inherited(_subclass)
  ::ActiveSupport.deprecator.warn(<<~MSG)
    ActiveSupport::ProxyObject is deprecated and will be removed in Rails 7.3.
    Use Ruby's built-in BasicObject instead.
  MSG
end

Instance Method Details

#raise(*args)

Let ProxyObject at least raise exceptions.

[ GitHub ]

  
# File 'activesupport/lib/active_support/proxy_object.rb', line 9

def raise(*args)
  ::Object.send(:raise, *args)
end