Sha256: aae6ef1b7ad75e96d509972628577a9c00ca2a39c9f8b029113dad54997f90e8
Contents?: true
Size: 510 Bytes
Versions: 32
Compression:
Stored size: 510 Bytes
Contents
module Delayed module MessageSending def send_later(method, *args) Delayed::Job.enqueue Delayed::PerformableMethod.new(self, method.to_sym, args) end module ClassMethods def handle_asynchronously(method) without_name = "#{method}_without_send_later" define_method("#{method}_with_send_later") do |*args| send_later(without_name, *args) end alias_method_chain method, :send_later end end end end
Version data entries
32 entries across 32 versions & 20 rubygems