Sha256: d79b456ee99764125dfb5990eb1cd529f1ae5d2daf0aa6591b72dccbd1446e2b
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module CarrierWave module Backgrounder module DelayStorage ## #Intercept carrierwave#cache_versions! so we can process versions later. def cache_versions!(new_file) super(new_file) if proceed_with_versioning? end def process!(new_file=nil) super(new_file) if proceed_with_versioning? end private def proceed_with_versioning? !model.respond_to?(:"process_#{mounted_as}_upload") || model.send(:"process_#{mounted_as}_upload") end end # DelayStorage end # Backgrounder end # CarrierWave
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carrierwave_backgrounder-0.0.6 | lib/backgrounder/delay_storage.rb |