2016-11-02 10:18:59 +01:00
|
|
|
class BaseUploader < CarrierWave::Uploader::Base
|
|
|
|
def cache_dir
|
|
|
|
if Rails.env.production?
|
2017-02-13 15:46:28 +01:00
|
|
|
'/tmp/tps-cache'
|
2016-11-02 10:18:59 +01:00
|
|
|
else
|
|
|
|
'/tmp/tps-dev-cache'
|
|
|
|
end
|
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|