Skip to content

Conversation

razorjack
Copy link
Contributor

@razorjack razorjack commented Sep 23, 2017

This PR fixes all tests so that the gem can now support CarrierWave 1.0.

CarrierWave 1.0 changed the way it deals with replaced files (determining if the original file should be deleted) so I needed to overwrite remove_previously_stored_#{column} to support it. I also modified how we change remove_previously_stored_files_after_update config in tests to match the ActiveRecord equivalent. CarrierWave 1.0 checks this config on the uploader class, not instance.

The tests will fail for old versions of CarrierWave (_mounter(column).uploader vs _mounter(column).uploaders).

If there's anything I can help you with to get the CarrierWave 1.0 support out, let me know, I'll be happy to help.

@rmm5t rmm5t merged commit 4ee3980 into carrierwaveuploader:carrierwave-1.0-support Oct 15, 2017
@rmm5t
Copy link
Member

rmm5t commented Oct 15, 2017

@razorjack Sorry for the delayed response, but thank you very much for this! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants