changed upload directory to uploaded_assets from assets in public folder

This commit is contained in:
Harry Bomrah 2014-09-01 17:41:11 +08:00
parent 8bdc32ec30
commit 8e37fc33f4
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class AssetUploader < CarrierWave::Uploader::Base
# Override the directory where uploaded files will be stored. # Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted: # This is a sensible default for uploaders that are meant to be mounted:
def store_dir def store_dir
"assets/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" "uploaded_assets/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end end
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded: