Sha256: cbdd53b3fa4083e4cc296cc43addb00056af14db8ac77b7306033de9136d54de

Contents?: true

Size: 514 Bytes

Versions: 17

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

module ActiveSupport
  class ProxyObject < ::BasicObject # :nodoc:
    undef_method :==
    undef_method :equal?

    # Let ActiveSupport::ProxyObject at least raise exceptions.
    def raise(*args)
      ::Object.send(:raise, *args)
    end

    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
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
activesupport-7.2.2.1 lib/active_support/proxy_object.rb
activesupport-7.2.2 lib/active_support/proxy_object.rb
activesupport-7.2.1.2 lib/active_support/proxy_object.rb
activesupport-7.2.1.1 lib/active_support/proxy_object.rb
activesupport-8.0.0.beta1 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha9 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha8 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha7 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha4 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha3 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha2 lib/active_support/proxy_object.rb
omg-activesupport-8.0.0.alpha1 lib/active_support/proxy_object.rb
activesupport-7.2.1 lib/active_support/proxy_object.rb
activesupport-7.2.0 lib/active_support/proxy_object.rb
activesupport-7.2.0.rc1 lib/active_support/proxy_object.rb
activesupport-7.2.0.beta3 lib/active_support/proxy_object.rb
activesupport-7.2.0.beta2 lib/active_support/proxy_object.rb