1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Given method here (e.g. perform) should be public_sendable

This commit is contained in:
Akira Matsuda 2020-10-07 20:55:59 +09:00
parent 8c9a5dca9c
commit 09939f8657

View file

@ -8,19 +8,19 @@ module QC
redefine_method(:enqueue) do |method, *args|
receiver_str, _, message = method.rpartition(".")
receiver = eval(receiver_str)
receiver.send(message, *args)
receiver.public_send(message, *args)
end
redefine_method(:enqueue_in) do |seconds, method, *args|
receiver_str, _, message = method.rpartition(".")
receiver = eval(receiver_str)
receiver.send(message, *args)
receiver.public_send(message, *args)
end
redefine_method(:enqueue_at) do |not_before, method, *args|
receiver_str, _, message = method.rpartition(".")
receiver = eval(receiver_str)
receiver.send(message, *args)
receiver.public_send(message, *args)
end
end
end