Module: Maitredee::ActiveJob
Instance Method Summary collapse
-
#call_later(*args) ⇒ Object
Uses ActiveJob to async the publishing.
-
#call_later_at(at, *args) ⇒ Object
Like
call_later, but performs at a given time.
Instance Method Details
#call_later(*args) ⇒ Object
Uses ActiveJob to async the publishing
28 29 30 |
# File 'lib/maitredee/active_job.rb', line 28 def call_later(*args) self::PublisherJob.perform_later(*args) end |
#call_later_at(at, *args) ⇒ Object
Like call_later, but performs at a given time
36 37 38 |
# File 'lib/maitredee/active_job.rb', line 36 def call_later_at(at, *args) self::PublisherJob.set(wait_until: at).perform_later(*args) end |