From fcfada340af11ad7f5f9516629f8de8711a3cf2a Mon Sep 17 00:00:00 2001 From: Jesse Pledger Date: Thu, 27 May 2021 12:40:43 -0700 Subject: [PATCH] Wizard#logo use `image_path` over `image_url`. - `image_path` computes the asset path including configured asset host and digest. This fixes an issue where compiled assets and assets stored in a CDN where not referenced correctly. --- app/models/solidus_paypal_commerce_platform/wizard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/solidus_paypal_commerce_platform/wizard.rb b/app/models/solidus_paypal_commerce_platform/wizard.rb index 02335519..b5939209 100644 --- a/app/models/solidus_paypal_commerce_platform/wizard.rb +++ b/app/models/solidus_paypal_commerce_platform/wizard.rb @@ -34,7 +34,7 @@ def nonce private def logo - ActionController::Base.helpers.image_url(::Spree::Config[:admin_interface_logo]) + ActionController::Base.helpers.image_path(::Spree::Config[:admin_interface_logo]) end end end