Sha256: 3dee3ca1c7b16898466aed7c02a9771b010a0524feab7b2bca778001c61c7448

Contents?: true

Size: 294 Bytes

Versions: 7

Compression:

Stored size: 294 Bytes

Contents

module Uploader
  module ChunkedUploads
    extend ActiveSupport::Concern

    protected

    def with_chunked_upload(file_or_part)
      uploader = UploadRequest.new(env, file_or_part)
      return unless uploader.completed?

      yield uploader.file
      uploader.cleanup
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-uploader-0.4.1 lib/uploader/chunked_uploads.rb
rails-uploader-0.4.0 lib/uploader/chunked_uploads.rb
rails-uploader-0.3.4 lib/uploader/chunked_uploads.rb
rails-uploader-0.3.3 lib/uploader/chunked_uploads.rb
rails-uploader-0.3.2 lib/uploader/chunked_uploads.rb
rails-uploader-0.3.1 lib/uploader/chunked_uploads.rb
rails-uploader-0.3.0 lib/uploader/chunked_uploads.rb