11 lines
190 B
Ruby
11 lines
190 B
Ruby
# encoding: utf-8
|
|
|
|
class BaseUploader < CarrierWave::Uploader::Base
|
|
def cache_dir
|
|
if Rails.env.production?
|
|
'/tmp/tps-cache'
|
|
else
|
|
'/tmp/tps-dev-cache'
|
|
end
|
|
end
|
|
end
|