Sha256: e43ea6a42a2f9f9b08a8df3013b6e7b0a78e59c890361282afe0d9dedc242df9

Contents?: true

Size: 335 Bytes

Versions: 10

Compression:

Stored size: 335 Bytes

Contents

require "action_view/template_handlers/tex"

module Latexpdf
  class Railtie < Rails::Railtie
    config.to_prepare do
      ActionView::Template.register_template_handler :tex, ActionView::Template::Handlers::Tex
      Latexpdf.configure do |c|
        c.build_path = Rails.configuration.paths['tmp'].first
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
latexpdf-0.5.0 lib/latexpdf/railtie.rb
latexpdf-0.4.11 lib/latexpdf/railtie.rb
latexpdf-0.4.10 lib/latexpdf/railtie.rb
latexpdf-0.4.9 lib/latexpdf/railtie.rb
latexpdf-0.4.8 lib/latexpdf/railtie.rb
latexpdf-0.4.7 lib/latexpdf/railtie.rb
latexpdf-0.4.6 lib/latexpdf/railtie.rb
latexpdf-0.4.5 lib/latexpdf/railtie.rb
latexpdf-0.4.4 lib/latexpdf/railtie.rb
latexpdf-0.4.3 lib/latexpdf/railtie.rb