Sha256: 26236935c3f82f4243c981b71ffc289c0bc2d5cf3a2a7e9f49d53ddc06fbf1b5

Contents?: true

Size: 413 Bytes

Versions: 15

Compression:

Stored size: 413 Bytes

Contents

module Wisepdf
  module Rails
    if ::Rails::VERSION::MAJOR == 2
      require 'wisepdf/rails/legacy'
    elsif ::Rails::VERSION::MAJOR > 2
      if ::Rails::VERSION::MINOR < 1
        require 'wisepdf/rails/railtie'
      else
        require 'wisepdf/rails/engine'
      end  
    end  
    
    if Mime::Type.lookup_by_extension(:pdf).nil?
      Mime::Type.register('application/pdf', :pdf)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wisepdf-1.2.6 lib/wisepdf/rails.rb
wisepdf-1.2.5 lib/wisepdf/rails.rb
wisepdf-1.2.4 lib/wisepdf/rails.rb
wisepdf-1.2.3 lib/wisepdf/rails.rb
wisepdf-1.2.2 lib/wisepdf/rails.rb
wisepdf-1.2.1 lib/wisepdf/rails.rb
wisepdf-1.2.0 lib/wisepdf/rails.rb
wisepdf-1.1.3 lib/wisepdf/rails.rb
wisepdf-1.1.2 lib/wisepdf/rails.rb
wisepdf-1.1.1 lib/wisepdf/rails.rb
wisepdf-1.1.0 lib/wisepdf/rails.rb
wisepdf-1.0.3 lib/wisepdf/rails.rb
wisepdf-1.0.2 lib/wisepdf/rails.rb
wisepdf-1.0.1 lib/wisepdf/rails.rb
wisepdf-1.0.0 lib/wisepdf/rails.rb