Add the cache_only configuration option #1456

Merged
merged 1 commit into from Sep 30, 2014

Projects

None yet

2 participants

@jeffkreeftmeijer
Contributor

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
Member
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
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment