changed assets upload dirctory to public/uploads

This commit is contained in:
Harry Bomrah 2014-09-01 17:58:55 +08:00
parent 8e37fc33f4
commit ee6456a16a
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.
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"uploaded_assets/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
"uploads/#{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: