Skip to content

Commit fb287f3

Browse files
committed
Show warning when conditionals are used with :convert
Refs. #2723
1 parent 04bfab3 commit fb287f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/carrierwave/uploader/processing.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def process(*args)
7070
if processor == :convert
7171
# Treat :convert specially, since it should trigger the file extension change
7272
force_extension processor_args
73+
if condition
74+
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. "
75+
end
7376
end
7477
end
7578
end

0 commit comments

Comments
 (0)