From 06df02f72b55a81e2937ad956196cb8298c0ea4d Mon Sep 17 00:00:00 2001 From: Xavier J Date: Wed, 26 Oct 2016 15:45:40 +0200 Subject: [PATCH] Change cache directory (opensimplf) --- app/uploaders/piece_justificative_uploader.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/uploaders/piece_justificative_uploader.rb b/app/uploaders/piece_justificative_uploader.rb index 5f26b3d5f..868ca5bef 100644 --- a/app/uploaders/piece_justificative_uploader.rb +++ b/app/uploaders/piece_justificative_uploader.rb @@ -20,7 +20,11 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base def cache_dir if Rails.env.production? - '/tmp/tps-cache' + if Features.opensimplif? + '/tmp/opensimplif-cache' + else + '/tmp/tps-cache' + end else '/tmp/tps-dev-cache' end