lib/ezprint.rb in ezprint-0.1.2 vs lib/ezprint.rb in ezprint-0.2.0
- old
+ new
@@ -1,8 +1,16 @@
require 'ezprint/pdf_helper'
+
+if defined?(::Rails::Railtie)
+ require 'ezprint/railtie'
+else
+ # Rails 2.x
+ Mime::Type.register 'application/pdf', :pdf
+ ActionController::Base.send(:include, EzPrint::PdfHelper)
+end