lib/cloudinary/carrier_wave/process.rb in cloudinary-1.0.55 vs lib/cloudinary/carrier_wave/process.rb in cloudinary-1.0.56

- old
+ new

@@ -138,10 +138,10 @@ # No local format. The reset should be handled by main uploader uploader = self.model.send(self.mounted_as) format = uploader.format else # Try to auto-detect format - format = Cloudinary::CarrierWave.split_format(original_filename || "").last + format = Cloudinary::PreloadedFile.split_format(original_filename || "").last format ||= "png" # TODO Default format? end format = format.to_s.downcase Cloudinary::FORMAT_ALIASES[format] || format end