Sha256: 3ece48ef7cfac8b0566367ce677bcd3abe34f83cc5111cf1de671f37a5dcb8be
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
require 'action_controller/base' require 'action_dispatch/http/mime_types' require 'ezprint/pdf_helper' 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) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ezprint-0.2.2 | lib/ezprint/railtie.rb |
ezprint-0.2.1 | lib/ezprint/railtie.rb |
ezprint-0.2.0 | lib/ezprint/railtie.rb |