lib/fleximage.rb in fleximage-1.0.3 vs lib/fleximage.rb in fleximage-1.0.4

- old
+ new

@@ -9,13 +9,10 @@ rescue MissingSourceFile => e puts %{ERROR :: FlexImage requires the RMagick gem. http://rmagick.rubyforge.org/install-faq.html} raise e end -# Patch String class for ruby < 1.9 -require 'fleximage/string_patch' - # Apply a few RMagick patches require 'fleximage/rmagick_image_patch' # Load dsl_accessor from lib require 'dsl_accessor' @@ -48,9 +45,10 @@ # Setup Helper require 'fleximage/helper' ActionView::Base.class_eval { include Fleximage::Helper } # 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