Change cache directory (opensimplf)

This commit is contained in:
Xavier J 2016-10-26 15:45:40 +02:00
parent 0599d7b148
commit 06df02f72b

View file

@ -20,7 +20,11 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base
def cache_dir
if Rails.env.production?
if Features.opensimplif?
'/tmp/opensimplif-cache'
else
'/tmp/tps-cache'
end
else
'/tmp/tps-dev-cache'
end