Sha256: d52f49a43908e132344c42e9d171dd40249e16e1f1cab849bd6eb23db9376890

Contents?: true

Size: 356 Bytes

Versions: 11

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

module PrawnPlus
  # The Rails hook.
  class Railtie < Rails::Railtie
    initializer "prawn_plus.initialize" do
      Mime::Type.register("application/pdf", :pdf) unless Mime::Type.lookup_by_extension :pdf
      ActionView::Template.register_template_handler :prawn, PrawnPlus::TemplateHandlers::Prawn.new
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
prawn_plus-9.0.0 lib/prawn_plus/railtie.rb
prawn_plus-8.2.0 lib/prawn_plus/railtie.rb
prawn_plus-8.1.0 lib/prawn_plus/railtie.rb
prawn_plus-8.0.0 lib/prawn_plus/railtie.rb
prawn_plus-7.5.1 lib/prawn_plus/railtie.rb
prawn_plus-7.5.0 lib/prawn_plus/railtie.rb
prawn_plus-7.4.0 lib/prawn_plus/railtie.rb
prawn_plus-7.3.0 lib/prawn_plus/railtie.rb
prawn_plus-7.2.0 lib/prawn_plus/railtie.rb
prawn_plus-7.1.0 lib/prawn_plus/railtie.rb
prawn_plus-7.0.0 lib/prawn_plus/railtie.rb