Module | Delayed::MessageSending::ClassMethods |
In: |
lib/delayed/message_sending.rb
|
# File lib/delayed/message_sending.rb, line 12 12: def handle_asynchronously(method) 13: aliased_method, punctuation = method.to_s.sub(/([?!=])$/, ''), $1 14: with_method, without_method = "#{aliased_method}_with_send_later#{punctuation}", "#{aliased_method}_without_send_later#{punctuation}" 15: define_method(with_method) do |*args| 16: send_later(without_method, *args) 17: end 18: alias_method_chain method, :send_later 19: end