Skip to content

Commit

Permalink
Show warning when conditionals are used with :convert
Browse files Browse the repository at this point in the history
Refs. #2723
  • Loading branch information
mshibuya committed Dec 7, 2024
1 parent 04bfab3 commit fb287f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/carrierwave/uploader/processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def process(*args)
if processor == :convert
# Treat :convert specially, since it should trigger the file extension change
force_extension processor_args
if condition
warn "Use of 'process convert: format' with conditionals has an issue and doesn't work correctly. See https://github.com/carrierwaveuploader/carrierwave/issues/2723 for details. "
end
end
end
end
Expand Down

0 comments on commit fb287f3

Please sign in to comment.