demarches-normaliennes/app/uploaders/base_uploader.rb
gregoirenovel 5eb9d6854c Remove now useless encoding statements
As utf-8 is the default encoding since Ruby 2,
this is no longer needed
2017-11-20 14:14:00 +01:00

9 lines
171 B
Ruby

class BaseUploader < CarrierWave::Uploader::Base
def cache_dir
if Rails.env.production?
'/tmp/tps-cache'
else
'/tmp/tps-dev-cache'
end
end
end