save to 'files' to make scanning easier
This commit is contained in:
parent
0bfde95476
commit
7d88a531f0
|
@ -21,7 +21,7 @@ class FileUploader < CarrierWave::Uploader::Base
|
||||||
# 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
|
||||||
#{}"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
#{}"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||||
ENV['STORAGE_PATH'] + "/#{model.album.path}"
|
ENV['STORAGE_PATH'] + "/files/#{model.album.path}"
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue