Sha256: 167122eeb9236da92f43a6fc9e128b52ac20edaad2d24bef01b69ad13bf0fb88

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

module CarrierWave
  module Backgrounder

    module Delay
      def cache_versions!(new_file)
        super if proceed_with_versioning?
      end

      def store_versions!(*args)
        super if proceed_with_versioning?
      end

      def process!(new_file=nil)
        super if proceed_with_versioning?
      end

      private

      def proceed_with_versioning?
        !model.respond_to?(:"process_#{mounted_as}_upload") && enable_processing ||
          !!(model.send(:"process_#{mounted_as}_upload") && enable_processing)
      end
    end # Delay

  end # Backgrounder
end # CarrierWave

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
carrierwave_backgrounder-1.0.2 lib/backgrounder/delay.rb
carrierwave_backgrounder-1.0.1 lib/backgrounder/delay.rb
carrierwave_backgrounder-1.0.0 lib/backgrounder/delay.rb
carrierwave_backgrounder-1.0.0.beta.2 lib/backgrounder/delay.rb
carrierwave_backgrounder-1.0.0.beta lib/backgrounder/delay.rb
carrierwave_backgrounder-0.4.3 lib/backgrounder/delay.rb
carrierwave_backgrounder_revived-1.0.0 lib/backgrounder/delay.rb
carrierwave_backgrounder-0.4.2 lib/backgrounder/delay.rb