module Apartment::Delayed::Job
Public Class Methods
enqueue(payload_object, options = {})
click to toggle source
Will enqueue a job ensuring that it happens within the main ‘public’ database
Note that this should not longer be required for versions >= 0.11.0 when using postgresql schemas
# File lib/apartment/delayed_job/enqueue.rb, line 12 def self.enqueue(payload_object, options = {}) Apartment::Database.process do ::Delayed::Job.enqueue(payload_object, options) end end