lib/vectory/datauri.rb in vectory-0.4.2 vs lib/vectory/datauri.rb in vectory-0.5.0
- old
+ new
@@ -49,10 +49,10 @@
end
def detect_image_class(image_type)
case image_type
when Eps.mimetype then return Eps
- when Emf.mimetype then return Emf
+ when *Emf.all_mimetypes then return Emf
when Svg.mimetype then return Svg
end
raise ConversionError, "Could not detect image type '#{image_type}'."
end