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