spree-contrib / spree_print_invoice

Create a PDF invoice for Spree orders.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
91 stars 239 forks source link

Fix Sprockets 3 #103

Closed archseer closed 1 year ago

archseer commented 8 years ago

Updating sprockets to 3.5 caused us to come across this issue:

ActionView::Template::Error (no implicit conversion of Sprockets::Asset into String):
     5: font @font_face
     6:
     7: im = Rails.application.assets.find_asset(Spree::PrintInvoice::Config[:print_invoice_logo_path])
     8: image im , :at => [0,720], :scale => logo_scale