lib/backgrounder/workers/process_asset.rb in carrierwave_backgrounder-0.0.8 vs lib/backgrounder/workers/process_asset.rb in carrierwave_backgrounder-0.0.9
- old
+ new
@@ -1,11 +1,16 @@
# encoding: utf-8
module CarrierWave
module Workers
class ProcessAsset < Struct.new(:klass, :id, :column)
- include ::Sidekiq::Worker if defined?(::Sidekiq)
@queue = :process_asset
+
+ if defined?(::Sidekiq)
+ include ::Sidekiq::Worker
+
+ sidekiq_options :queue => @queue
+ end
def self.perform(*args)
new(*args).perform
end