Sha256: 270ad2a4ee3faa3b6c53a317566b6738e5d579f84620ddbe826730dd69a44c23
Contents?: true
Size: 437 Bytes
Versions: 3
Compression:
Stored size: 437 Bytes
Contents
module Wisepdf module Rails if ::Rails::VERSION::MAJOR == 2 require 'wisepdf/rails/legacy' elsif ::Rails::VERSION::MAJOR > 2 if ::Rails::VERSION::MAJOR == 3 && ::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wisepdf-1.4.0 | lib/wisepdf/rails.rb |
wisepdf-1.3.1 | lib/wisepdf/rails.rb |
wisepdf-1.3.0 | lib/wisepdf/rails.rb |