Remove /system prefix from store_dir

This commit is contained in:
Karina Kwiatek 2020-05-02 13:06:49 +01:00 committed by Dominik M. Kwiatek
parent 6f0d4971fb
commit 3cc05a395f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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