From b0cbd7c38ccd0437901f5fa18db070dbed8ea14d Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Tue, 17 Apr 2018 18:34:02 +0200 Subject: [PATCH] f --- app/controllers/invoices_controller.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/controllers/invoices_controller.rb b/app/controllers/invoices_controller.rb index 23adda8..5163fae 100644 --- a/app/controllers/invoices_controller.rb +++ b/app/controllers/invoices_controller.rb @@ -15,14 +15,8 @@ class InvoicesController < ApplicationController layout: 'pdf', encoding: 'UTF-8', page_size: 'A4', - print_media_type: true, - render pdf: "Faktura_VAT_#{@invoice.id}", # Excluding ".pdf" extension. - disposition: 'attachment', - layout: 'pdf', - encoding: 'UTF-8', - page_size: 'A4', - margin: { top: 8, bottom: 8, left: 8, right: 8 }, - viewport_size: '1336x1024' + margin: { top: 8, bottom: 8, left: 8, right: 8 }, + viewport_size: '1336x1024' end end end