Sha256: d6c517c24afe7c40f53c5d8ad42bc5dbda77120b7b5541d7bb7f084107b8f7dd

Contents?: true

Size: 355 Bytes

Versions: 46

Compression:

Stored size: 355 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

46 entries across 46 versions & 1 rubygems

Version Path
prawn_plus-12.4.0 lib/prawn_plus/railtie.rb
prawn_plus-12.3.0 lib/prawn_plus/railtie.rb
prawn_plus-12.2.3 lib/prawn_plus/railtie.rb
prawn_plus-12.2.2 lib/prawn_plus/railtie.rb
prawn_plus-12.2.1 lib/prawn_plus/railtie.rb
prawn_plus-12.2.0 lib/prawn_plus/railtie.rb
prawn_plus-12.1.0 lib/prawn_plus/railtie.rb
prawn_plus-12.0.0 lib/prawn_plus/railtie.rb
prawn_plus-11.2.0 lib/prawn_plus/railtie.rb
prawn_plus-11.1.0 lib/prawn_plus/railtie.rb
prawn_plus-11.0.4 lib/prawn_plus/railtie.rb
prawn_plus-11.0.3 lib/prawn_plus/railtie.rb
prawn_plus-11.0.2 lib/prawn_plus/railtie.rb
prawn_plus-11.0.1 lib/prawn_plus/railtie.rb
prawn_plus-11.0.0 lib/prawn_plus/railtie.rb
prawn_plus-10.5.0 lib/prawn_plus/railtie.rb
prawn_plus-10.4.0 lib/prawn_plus/railtie.rb
prawn_plus-10.3.0 lib/prawn_plus/railtie.rb
prawn_plus-10.2.0 lib/prawn_plus/railtie.rb
prawn_plus-10.1.0 lib/prawn_plus/railtie.rb