Sha256: 364861a4b5f7b35193b9be050e858ffdd5993d2d708c52b23c64624ea3a5edc7

Contents?: true

Size: 1.41 KB

Versions: 20

Compression:

Stored size: 1.41 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::Download
      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

20 entries across 20 versions & 4 rubygems

Version Path
thorsson_carrierwave-0.4.12 lib/carrierwave/uploader.rb
thorsson_carrierwave-0.4.11 lib/carrierwave/uploader.rb
thorsson_carrierwave-0.4.10 lib/carrierwave/uploader.rb
thorsson_carrierwave-0.4.9 lib/carrierwave/uploader.rb
thorsson_carrierwave-0.4.8 lib/carrierwave/uploader.rb
thorsson_carrierwave-0.4.6 lib/carrierwave/uploader.rb
thorsson_carrierwave-0.4.5 lib/carrierwave/uploader.rb
carrierwave-0.4.10 lib/carrierwave/uploader.rb
carrierwave-0.4.9 lib/carrierwave/uploader.rb
carrierwave-0.4.8 lib/carrierwave/uploader.rb
carrierwave-0.4.7 lib/carrierwave/uploader.rb
carrierwave-0.4.6 lib/carrierwave/uploader.rb
samlown-carrierwave-0.4.5 lib/carrierwave/uploader.rb
dsturnbull-carrierwave-0.4.9 lib/carrierwave/uploader.rb
dsturnbull-carrierwave-0.4.8 lib/carrierwave/uploader.rb
dsturnbull-carrierwave-0.4.7 lib/carrierwave/uploader.rb
carrierwave-0.4.5 lib/carrierwave/uploader.rb
dsturnbull-carrierwave-0.4.6 lib/carrierwave/uploader.rb
dsturnbull-carrierwave-0.4.5 lib/carrierwave/uploader.rb
carrierwave-0.4.4 lib/carrierwave/uploader.rb