lib/backgrounder/support/backends.rb in carrierwave_backgrounder-0.1.0 vs lib/backgrounder/support/backends.rb in carrierwave_backgrounder-0.1.1
- old
+ new
@@ -44,11 +44,10 @@
::Resque.enqueue worker, class_name, subject_id, mounted_as
when :qu
worker.instance_variable_set('@queue', queue_options[:queue] || :carrierwave)
::Qu.enqueue worker, class_name, subject_id, mounted_as
when :sidekiq
- worker.extend ::Sidekiq::Worker
- worker.sidekiq_options queue_options[:queue] || :carrierwave
+ worker.sidekiq_options queue_options
::Sidekiq::Client.enqueue worker, class_name, subject_id, mounted_as
when :qc
::QC.enqueue "#{worker.name}.perform", class_name, subject_id, mounted_as.to_s
when :immediate
worker.new(class_name, subject_id, mounted_as).perform