Add the cache_only configuration option #1456

merged 1 commit into from Sep 30, 2014


None yet

2 participants


Hey everyone,

I’ve been trying to get test fixtures working on CarrierWave, and came up with a solution that works by monkey-patching CarrierWave::Mount::Mounter#store!. That way, you prevent CarrierWave from moving the files from the cache directory to the store_dir.

It’d be great to be able to set a configuration option in your tests instead of breaking a method in the mounter, so I added a configuration option called “cache_only”, which does the same thing. What do you think?

bensie commented Sep 30, 2014

Thanks @jeffkreeftmeijer looks great!

@bensie bensie merged commit c82ad88 into carrierwaveuploader:master Sep 30, 2014

1 check failed

continuous-integration/travis-ci The Travis CI build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment