lib/backgrounder/workers/process_asset.rb in carrierwave_backgrounder-0.4.1 vs lib/backgrounder/workers/process_asset.rb in carrierwave_backgrounder-0.4.2
- old
+ new
@@ -5,10 +5,10 @@
class ProcessAsset < Base
def perform(*args)
record = super(*args)
- if record
+ if record && record.send(:"#{column}").present?
record.send(:"process_#{column}_upload=", true)
if record.send(:"#{column}").recreate_versions! && record.respond_to?(:"#{column}_processing")
record.update_attribute :"#{column}_processing", false
end
end