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:
parent
8c9a5dca9c
commit
09939f8657
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue