changed upload directory to uploaded_assets from assets in public folder

This commit is contained in:
harrybomrah committed 2014-09-01 17:41:11 +08:00
1 parent 8bdc32ec30
commit 8e37fc33f4
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ class AssetUploader < CarrierWave::Uploader::Base
# 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
"assets/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
"uploaded_assets/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
# Provide a default URL as a default if there hasn't been a file uploaded: