Skip to content

Commit

Permalink
Address ActiveSupport::ProxyObject deprecation on Rails 7.2.0.alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuay03 committed Apr 30, 2024
1 parent b66bb64 commit 25469d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions lib/delayed/compatibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,13 @@
module Delayed
module Compatibility
if ActiveSupport::VERSION::MAJOR >= 4
require 'active_support/proxy_object'

def self.executable_prefix
'bin'
end

def self.proxy_object_class
ActiveSupport::ProxyObject
end
else
require 'active_support/basic_object'

def self.executable_prefix
'script'
end

def self.proxy_object_class
ActiveSupport::BasicObject
end
end
end
end
2 changes: 1 addition & 1 deletion lib/delayed/message_sending.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Delayed
class DelayProxy < Delayed::Compatibility.proxy_object_class
class DelayProxy < BasicObject
def initialize(payload_class, target, options)
@payload_class = payload_class
@target = target
Expand Down

0 comments on commit 25469d9

Please sign in to comment.