Sha256: c79f999a8dadfdec9f943b4e94a57c7323071ca79056dcc348e3392754d70545

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

require 'rails'

module QbIif
  class Railtie < ::Rails::Railtie
    initializer 'qb_iif' do
      ::ActiveSupport.on_load(:action_view) do
        unless ::Mime::Type.lookup_by_extension(:iif)
          ::Mime::Type.register "application/qbooks", :iif,
            %w(application/qbookspro text/iif)
        end

        require 'qb_iif/rails/template_handler'
        require 'qb_iif/rails/renderer'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qb_iif-0.1.2 lib/qb_iif/railtie.rb
qb_iif-0.1.1 lib/qb_iif/railtie.rb
qb_iif-0.1.0 lib/qb_iif/railtie.rb