encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8

Methods
C
G
Classes and Modules
Constants
VERSION = "0.4.5"
Attributes
[RW] root
Class Public methods
clean_cached_files!()
# File lib/carrierwave.rb, line 20
    def clean_cached_files!
      CarrierWave::Uploader::Base.clean_cached_files!
    end
configure(&block)
# File lib/carrierwave.rb, line 16
    def configure(&block)
      CarrierWave::Uploader::Base.configure(&block)
    end
generate_cache_id()

Generates a unique cache id for use in the caching system

Returns

String
a cache id in the format YYYYMMDD-HHMM-PID-RND
# File lib/carrierwave/uploader/cache.rb, line 18
  def self.generate_cache_id
    Time.now.strftime('%Y%m%d-%H%M') + '-' + Process.pid.to_s + '-' + ("%04d" % rand(9999))
  end