lib/wisepdf/rails.rb in wisepdf-1.2.6 vs lib/wisepdf/rails.rb in wisepdf-1.2.7

- old
+ new

@@ -5,12 +5,12 @@ elsif ::Rails::VERSION::MAJOR > 2 if ::Rails::VERSION::MINOR < 1 require 'wisepdf/rails/railtie' else require 'wisepdf/rails/engine' - end - end - + end + end + if Mime::Type.lookup_by_extension(:pdf).nil? Mime::Type.register('application/pdf', :pdf) end end end