Fix premailer strategy when using CDN_HOST (#34813)
This commit is contained in:
parent
b7e967817b
commit
955e75e820
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue