Add cache_storage config for carrierwave 2
This commit is contained in:
parent
072ca83052
commit
ea6a29e667
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue