lib/generators/templates/uploader.rb in locomotive_carrierwave-0.5.0.1 vs lib/generators/templates/uploader.rb in locomotive_carrierwave-0.5.4.beta1
- old
+ new
@@ -6,11 +6,11 @@
# include CarrierWave::RMagick
# include CarrierWave::ImageScience
# Choose what kind of storage to use for this uploader:
storage :file
- # storage :s3
+ # storage :fog
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
@@ -38,9 +38,10 @@
# def extension_white_list
# %w(jpg jpeg gif png)
# end
# Override the filename of the uploaded files:
+ # Avoid using model.id or version_name here, see uploader/store.rb for details.
# def filename
# "something.jpg" if original_filename
# end
end