Add cache_storage config for carrierwave 2

This commit is contained in:
Michael Ball 2021-03-04 01:41:49 -08:00
parent 072ca83052
commit ea6a29e667

View file

@ -1,5 +1,6 @@
CarrierWave.configure do |config|
config.storage = :file
config.cache_storage = :file
config.cache_dir = "#{Rails.root}/tmp/uploads"
config.enable_processing = false if Rails.env.test?
end