You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we define the nested version, everything works as expected:
classAvatarUploader < CarrierWave::Uploader::Base# other code is the sameversion:croppeddoprocessresize_to_fit: [200,200]version:small,if: :process_small?doprocessresize_to_fit: [150,150]endendenduser=User.newuser.skip_processing_small_avatar=trueuser.avatar=File.open(my_file)user.avatar.cropped.small.exists?# false
Assuming we have the following setup
When we try to disable processing of version, it doesn't work:
If we define the nested version, everything works as expected:
Related code
Callback:
carrierwave/lib/carrierwave/uploader/versions.rb
Line 17 in 2a0fefc
carrierwave/lib/carrierwave/uploader/versions.rb
Lines 252 to 254 in 2a0fefc
Sibling versions are always included here, whether they're active or not:
carrierwave/lib/carrierwave/uploader/versions.rb
Lines 290 to 292 in 2a0fefc
I guess sibling versions should be also filtered this way:
I can create PR if you also think that it's a bug and not expected behavior.
The text was updated successfully, but these errors were encountered: