Sha256: b743b596e6adae278e6f8978eced1ddc3bab42dce88ee5c442ec94bd78deb82e

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

module CarrierWave
  module Backgrounder

    module DelayStorage
      def cache_versions!(new_file)
        super(new_file) if proceed_with_versioning?
      end
      
      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

3 entries across 3 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.0.5 lib/backgrounder/delay_storage.rb
carrierwave_backgrounder-0.0.4 lib/backgrounder/delay_storage.rb
carrierwave_backgrounder-0.0.3 lib/backgrounder/delay_storage.rb