lib/cloudinary/carrier_wave/process.rb in cloudinary-1.0.21 vs lib/cloudinary/carrier_wave/process.rb in cloudinary-1.0.22

- old
+ new

@@ -75,17 +75,24 @@ when :scale set_or_yell(@transformation, :width, args[0]) set_or_yell(@transformation, :height, args[1]) set_or_yell(@transformation, :crop, :scale) when :crop - set_or_yell(@transformation, :width, args[0]) + set_or_yell(@transformation, :width, args[0]) set_or_yell(@transformation, :height, args[1]) set_or_yell(@transformation, :gravity, args[2].to_s.downcase) set_or_yell(@transformation, :crop, :crop) when :cloudinary_transformation args.each do |attr, value| set_or_yell(@transformation, attr, value) + end + else + if args.blank? + send(name).each do + |attr, value| + set_or_yell(@transformation, attr, value) + end end end end @transformation end