lib/pdfkit/middleware.rb in pdfkit-middleware-to-file-0.5.6 vs lib/pdfkit/middleware.rb in pdfkit-middleware-to-file-0.5.7

- old
+ new

@@ -34,10 +34,10 @@ body = body.join if body.is_a?(Array) pdf = PDFKit.new(translate_paths(body, env), @options) if headers["PDF-Full-File-Path"].present? file = pdf.to_file( headers["PDF-Full-File-Path"] ) - upload(file) if PDFKit.configure.upload_options[:host].present? + upload(file) if PDFKit.configuration.upload_options[:host].present? end body = pdf.to_pdf response = [body]