Class: ActiveSupport::ProxyObject

Inherits:
BasicObject
Defined in:
lib/active_support/proxy_object.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inherited(_subclass) ⇒ Object



13
14
15
16
17
18
# File '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 8.0.
    Use Ruby's built-in BasicObject instead.
  MSG
end

Instance Method Details

#raise(*args) ⇒ Object

Let ActiveSupport::ProxyObject at least raise exceptions.



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

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