mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 15:39:11 +01:00
Remove /system prefix from store_dir
This commit is contained in:
parent
6f0d4971fb
commit
3cc05a395f
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class ProfileHeaderUploader < 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
|
||||
"/system/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||
"/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||
end
|
||||
|
||||
def paperclip_path
|
||||
|
|
|
@ -8,7 +8,7 @@ class ProfilePictureUploader < 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
|
||||
"/system/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||
"/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||
end
|
||||
|
||||
def paperclip_path
|
||||
|
|
Loading…
Reference in a new issue