Fix premailer strategy when using CDN_HOST (#34813)

This commit is contained in:
Claire authored and GitHub committed 2025-05-26 13:19:19 +00:00
1 parent b7e967817b
commit 955e75e820
1 file changed
+3 -1
+3 -1
View File
@@ -15,7 +15,9 @@ module PremailerBundledAssetStrategy
headers
).presence
else
path = Rails.public_path.join(url.delete_prefix('/'))
url = url.delete_prefix(Rails.configuration.action_controller.asset_host) if Rails.configuration.action_controller.asset_host.present?
url = url.delete_prefix('/')
path = Rails.public_path.join(url)
return unless path.exist?
path.read