demarches-normaliennes/app/uploaders/base_uploader.rb

10 lines
171 B
Ruby
Raw Normal View History

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