Sha256: d301b5ccbef32e5404fbb0ea1d58c360c74f3547fcdaab807d56b93d24f7be31

Contents?: true

Size: 1.51 KB

Versions: 60

Compression:

Stored size: 1.51 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

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

  end # Uploader
end # CarrierWave

Version data entries

60 entries across 55 versions & 4 rubygems

Version Path
classiccms-0.5.13 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.12 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.11 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.10 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.9 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.8 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.7 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.6 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.5 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.2 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.1 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.5.0 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.4.2 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.4.1 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.4.0 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
classiccms-0.3.9 vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb