lib/backgrounder/delay_storage.rb in carrierwave_backgrounder-0.0.2 vs lib/backgrounder/delay_storage.rb in carrierwave_backgrounder-0.0.3
- old
+ new
@@ -5,10 +5,10 @@
def cache_versions!(new_file)
super(new_file) if proceed_with_versioning?
end
def proceed_with_versioning?
- !model.respond_to?(:process_upload) || model.process_upload
+ !model.respond_to?(:"process_#{mounted_as}_upload") || model.send(:"process_#{mounted_as}_upload")
end
end # DelayStorage
end # Backgrounder
end # CarrierWave
\ No newline at end of file