collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.81k stars 955 forks source link

Address `ActiveSupport::ProxyObject` deprecation on Rails 7.2.0.alpha #1209

Open joshuay03 opened 2 months ago

joshuay03 commented 2 months ago

ActiveSupport::ProxyObject has been deprecated on Rails main i.e. 7.2.0.alpha. The recommended alternative is Ruby's BasicObject:

Delayed::Compatibility.proxy_object_class
DEPRECATION WARNING: ActiveSupport::ProxyObject is deprecated and will be removed in Rails 7.3.
Use Ruby's buildin BasicObject instead.
 (called from <module:Delayed> at /rails/vendor/bundle/ruby/3.2.0/gems/delayed_job-4.1.11/lib/delayed/message_sending.rb:2)

which has been around since Ruby 1.9.

There's some additional functionality that ActiveSupport::ProxyObject has over BasicObject, but from what I can tell, those aren't being used in this specific case.