diff --git a/lib/delayed/message_sending.rb b/lib/delayed/message_sending.rb index 960b73d0..6e1e834a 100644 --- a/lib/delayed/message_sending.rb +++ b/lib/delayed/message_sending.rb @@ -1,5 +1,11 @@ module Delayed class DelayProxy < BasicObject + undef_method :== + undef_method :equal? + + # Let DelayProxy raise exceptions. + define_method(:raise, ::Object.instance_method(:raise)) + def initialize(payload_class, target, options) @payload_class = payload_class @target = target