Sha256: 2605c5a9328095fb2a0c043ef0ac98d0fcc5dae7244da1c825b7e1e9334cc4f5
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
require 'action_controller/base' require 'action_dispatch/http/mime_types' require 'ezprint/pdf_helper' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
historian_ezprint-0.2.1 | lib/ezprint/railtie.rb |