blob: a166081f9f044b09e1c36d9a7c41f755ecd05487 (
plain) (
tree)
|
|
require 'sucker_punch'
module ActiveJob
module QueueAdapters
class SuckerPunchAdapter
class << self
def enqueue(job, *args)
JobWrapper.new.async.perform job, *args
end
def enqueue_at(job, timestamp, *args)
raise NotImplementedError
end
end
class JobWrapper
include SuckerPunch::Job
def perform(job, *args)
job.new.perform_with_hooks *args
end
end
end
end
end
|