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