demarches-normaliennes/app/uploaders/base_uploader.rb

11 lines
189 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
end