Sha256: ccf8713a1531246272fe7e0e0bae7d85d17b70812c6a0aa446f4e955bc4ed4ab

Contents?: true

Size: 1.37 KB

Versions: 5

Compression:

Stored size: 1.37 KB

Contents

# encoding: utf-8

module CarrierWave

  ##
  # See CarrierWave::Uploader::Base
  #
  module Uploader

    ##
    # An uploader is a class that allows you to easily handle the caching and storage of
    # uploaded files. Please refer to the README for configuration options.
    #
    # Once you have an uploader you can use it in isolation:
    #
    #     my_uploader = MyUploader.new
    #     my_uploader.cache!(File.open(path_to_file))
    #     my_uploader.retrieve_from_store!('monkey.png')
    #
    # Alternatively, you can mount it on an ORM or other persistence layer, with
    # +CarrierWave::Mount#mount_uploader+. There are extensions for activerecord and datamapper
    # these are *very* simple (they are only a dozen lines of code), so adding your own should
    # be trivial.
    #
    class Base
      attr_reader :file

      use CarrierWave::Uploader::Callbacks
      use CarrierWave::Uploader::Proxy
      use CarrierWave::Uploader::Url
      use CarrierWave::Uploader::Mountable
      use CarrierWave::Uploader::Cache
      use CarrierWave::Uploader::Store
      use CarrierWave::Uploader::Remove
      use CarrierWave::Uploader::ExtensionWhitelist
      use CarrierWave::Uploader::Processing
      use CarrierWave::Uploader::Versions
      use CarrierWave::Uploader::DefaultUrl
      use CarrierWave::Uploader::Configuration
    end # Base

  end # Uploader
end # CarrierWave

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
durran-carrierwave-0.4.3 lib/carrierwave/uploader.rb
carrierwave-0.4.3 lib/carrierwave/uploader.rb
carrierwave-0.4.2 lib/carrierwave/uploader.rb
carrierwave-0.4.1 lib/carrierwave/uploader.rb
carrierwave-0.4.0 lib/carrierwave/uploader.rb