module Apartment::Delayed::Job

def self.enqueue(payload_object, options = {})


Note that this should not longer be required for versions >= 0.11.0 when using postgresql schemas

Will enqueue a job ensuring that it happens within the main 'public' database
def self.enqueue(payload_object, options = {})
  Apartment::Database.process do
    ::Delayed::Job.enqueue(payload_object, options)
  end
end