1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/active_job/queue_adapters/sucker_punch_adapter.rb

15 lines
310 B
Ruby
Raw Normal View History

2014-05-18 15:20:06 -04:00
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