Sha256: ef3ae9f9b603a3115a846d314ef4ff8af48b2e94f00df3f2b557292851f92b94
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 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 unless Mime::Type.lookup_by_extension(: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.2 | lib/ezprint/railtie.rb |