demarches-normaliennes/app/uploaders/base_uploader.rb

12 lines
190 B
Ruby
Raw Normal View History

# encoding: utf-8
class BaseUploader < CarrierWave::Uploader::Base
def cache_dir
if Rails.env.production?
2017-02-13 15:46:28 +01:00
'/tmp/tps-cache'
else
'/tmp/tps-dev-cache'
end
end
2017-04-04 15:27:04 +02:00
end