demarches-normaliennes/app/uploaders/base_uploader.rb
2017-04-04 16:59:38 +02:00

11 lines
190 B
Ruby

# encoding: utf-8
class BaseUploader < CarrierWave::Uploader::Base
def cache_dir
if Rails.env.production?
'/tmp/tps-cache'
else
'/tmp/tps-dev-cache'
end
end
end