You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails. Is there any philosophical reason for this? If not, I would like to see the latter working as well. Besides, it would be great if send_later methods that will fail because the target object cannot be serialized would raise an ArgmentError.
The text was updated successfully, but these errors were encountered:
--- a/vendor/plugins/delayed_job/lib/delayed/performable_method.rb
+++ b/vendor/plugins/delayed_job/lib/delayed/performable_method.rb
@@ -38,7 +38,7 @@ module Delayed
def dump(arg)
case arg
- when Class then class_to_string(arg)
+ when Module then class_to_string(arg)
when ActiveRecord::Base then ar_to_string(arg)
else arg
end
but the naming is suboptimal, of course. I will try to prepare a better patch during the next days.
I find it a bit strange that
class X
def self.method; end
end
X.send_later :method
works, but
module X
def self.method; end
end
X.send_later :method
fails. Is there any philosophical reason for this? If not, I would like to see the latter working as well. Besides, it would be great if send_later methods that will fail because the target object cannot be serialized would raise an ArgmentError.
The text was updated successfully, but these errors were encountered: