1 2 3 4 5 6 7 8 9 10 11 12 13 14
require 'sidekiq' require 'active_job/job_wrappers/sidekiq_wrapper' module ActiveJob module QueueAdapters class SidekiqAdapter class << self def queue(job, *args) JobWrappers::SidekiqWrapper.perform_async(job, *args) end end end end end