From 8fde0b644f72c3c2768c7241e5dffe2b32efd213 Mon Sep 17 00:00:00 2001 From: Alessandro Lepore Date: Thu, 22 Oct 2015 11:25:11 +0200 Subject: [PATCH] fix logo image display --- app/views/spree/admin/orders/invoice.pdf.prawn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/orders/invoice.pdf.prawn b/app/views/spree/admin/orders/invoice.pdf.prawn index 551f618a..b49c2f61 100644 --- a/app/views/spree/admin/orders/invoice.pdf.prawn +++ b/app/views/spree/admin/orders/invoice.pdf.prawn @@ -8,7 +8,7 @@ repeat(:all) do im = Rails.application.assets.find_asset(Spree::PrintInvoice::Config[:logo_path]) if im && File.exist?(im.pathname) - image im, vposition: :top, height: 40, scale: Spree::PrintInvoice::Config[:logo_scale] + image im.filename, vposition: :top, height: 40, scale: Spree::PrintInvoice::Config[:logo_scale] end grid([0,3], [0,4]).bounding_box do