The default spree admin_interface_logo is defaulted to logo/spree_50.png and resist in the app's public folder. This plugin takes the Spree::Config[:admin_interface_logo]as default value for it's logo_path. Nice!
This is easily fixed, with moving the print logo into the assets folder, sure, but it feels a bit strange, since the spree default logo breaks this behavior.
Yes, there is File.exist? check, but since the asset finder returns nil and File.exist? takes a String we get a TypeError: no implicit conversion of nil into String if the logo cannot be found.
The default spree
admin_interface_logo
is defaulted tologo/spree_50.png
and resist in the app'spublic
folder. This plugin takes theSpree::Config[:admin_interface_logo]
as default value for it'slogo_path
. Nice!But, unfortunately this is broken, because the pdf writer only finds files known to Rails asset pipeline from the
assets
folder.This is easily fixed, with moving the print logo into the
assets
folder, sure, but it feels a bit strange, since the spree default logo breaks this behavior.