demarches-normaliennes/app/uploaders/base_uploader.rb
2017-02-13 15:46:28 +01:00

11 lines
No EOL
189 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