Sha256: 5710068ce530e225a4cd38ff77fad3517b235fe66af66664da39ad28001b5514

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

# encoding: utf-8
module CarrierWave
  module Workers

    class ProcessAsset < Base

      def perform(*args)
        record = super(*args)

        if record
          record.send(:"process_#{column}_upload=", true)
          if record.send(:"#{column}").recreate_versions! && record.respond_to?(:"#{column}_processing")
            record.update_attribute :"#{column}_processing", nil
          end
        end
      end

    end # ProcessAsset

  end # Workers
end # Backgrounder

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.4.0 lib/backgrounder/workers/process_asset.rb
carrierwave_backgrounder-0.3.0 lib/backgrounder/workers/process_asset.rb