lib/ezprint/railtie.rb in ezprint-0.2.2 vs lib/ezprint/railtie.rb in ezprint-0.3.1
- old
+ new
@@ -1,18 +1,17 @@
require 'action_controller/base'
require 'action_dispatch/http/mime_types'
-require 'ezprint/pdf_helper'
-module EzPrint
+module Ezprint
class Railtie < Rails::Railtie
initializer :init_mime_types do
Mime::Type.register 'application/pdf', :pdf
end
initializer :insert_into_action_controller do
ActiveSupport.on_load :action_controller do
- ActionController::Base.send(:include, EzPrint::PdfHelper)
+ ActionController::Base.send(:include, Ezprint::PdfHelper)
end
end
end
end