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

- old
+ new

@@ -7,13 +7,13 @@ @options = options @conditions = conditions end def upload(file) - host = PDFKit.configure.upload_options[:host] - user = PDFKit.configure.upload_options[:user] - folder = PDFKit.configure.upload_options[:folder] - password = PDFKit.configure.upload_options[:password] + host = PDFKit.configuration.upload_options[:host] + user = PDFKit.configuration.upload_options[:user] + folder = PDFKit.configuration.upload_options[:folder] + password = PDFKit.configuration.upload_options[:password] file_name = File.basename( file ) full_path = File.absolute_path( file ) Net::SFTP.start(host, user, :password => password) do |sftp|