Closed rajyan closed 1 year ago
There is a workaround
test_image.image.test.class.enable_processing = true
My intention was that the inheritance structure change in https://github.com/carrierwaveuploader/carrierwave/commit/1531a67366f0e25e3d298133a72c81b6c9c0dc83 will make the #enable_processing
patch unnecessary, but actually it wasn't as you mentioned. I've restored the #enable_processing
patch back and now this is fixed.
Thank you for reporting 👍
@mshibuya
Thank you for your swift replies!
Summary
This change https://github.com/carrierwaveuploader/carrierwave/commit/1531a67366f0e25e3d298133a72c81b6c9c0dc83 led to a breaking change with enable_processing configuration.
Before this change we could change versions'
enable_processing
by calling the mounted column uploader's config like in the README.Although, 3.0.0 has a complex change with this behavior. The above configuration sometimes works, but sometimes not.
Minimum reproducible example
Problem
We noticed this change with our test suite. If we have called the mounted column somewhere in our test, we cannot change the
enable_processing
configuration of the versions afterwards in other tests.test2 succeeds if you run it individually, but fails if you run after test1.
I don't have a valid use-case in production, but if someone is changing
enable_processing
dynamically in their application, the same issue might happen.I believe restoring these lines https://github.com/carrierwaveuploader/carrierwave/commit/1531a67366f0e25e3d298133a72c81b6c9c0dc83#diff-c3e7243412c35dfefcaf2569736474b74402cc34cb550e472aacef867d91da18L90-L97 in the
Builder
can fix this issue, but want some opinions before proceeding.