lib/fleximage.rb in tvdeyen-fleximage-1.0.5 vs lib/fleximage.rb in tvdeyen-fleximage-1.0.7
- old
+ new
@@ -51,9 +51,8 @@
# Setup Aviary Controller
require 'fleximage/aviary_controller'
ActionController::Base.class_eval{ include Fleximage::AviaryController }
# Register mime types
-Mime::Type.register_alias "image/pjpeg", :jpg # IE6 sends jpg data as "image/pjpeg". Silly IE6.
-Mime::Type.register "image/jpeg", :jpg
+Mime::Type.register "image/jpeg", :jpg, ["image/pjpeg"], ["jpeg"]
Mime::Type.register "image/gif", :gif
Mime::Type.register "image/png", :png