Fix premailer strategy when using CDN_HOST (#34813)
This commit is contained in:
parent
b7e967817b
commit
955e75e820
@ -15,7 +15,9 @@ module PremailerBundledAssetStrategy
|
|||||||
headers
|
headers
|
||||||
).presence
|
).presence
|
||||||
else
|
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?
|
return unless path.exist?
|
||||||
|
|
||||||
path.read
|
path.read
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user