Fix carrierwave root issues

This commit is contained in:
Guillaume Lazzara 2016-05-24 18:35:25 +02:00
parent a62076c34b
commit 7fbee7a5b5
5 changed files with 8 additions and 4 deletions

View file

@ -14,7 +14,7 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
unless Features.remote_storage
"../uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
"./uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
end