demarches-normaliennes/app/uploaders/base_uploader.rb
2016-11-02 10:18:59 +01:00

15 lines
No EOL
276 B
Ruby

# encoding: utf-8
class BaseUploader < 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
end
end