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