mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
15 lines
310 B
Ruby
15 lines
310 B
Ruby
|
require 'sucker_punch'
|
||
|
require 'active_job/job_wrappers/sucker_punch_wrapper'
|
||
|
|
||
|
module ActiveJob
|
||
|
module QueueAdapters
|
||
|
class SuckerPunchAdapter
|
||
|
class << self
|
||
|
def queue(job, *args)
|
||
|
JobWrappers::SuckerPunchWrapper.new.async.perform(job, *args)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|