Fix image in emails

This commit is contained in:
Hugo Peixoto 2022-09-28 00:18:19 +01:00
parent e2bcdaec26
commit 9dfdf3675b
4 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -10,7 +10,7 @@
<body>
<div style="max-width: 600px;">
<div style="background-color: #041952; padding: 20px">
<img src="https://hugopeixoto.net/images/ansol-logo-white.png?xxx" style="margin: 0px auto; max-width: 400px; display: block; color: white" alt="ANSOL" />
<img src="<%= image_url("ansol-logo-white.png") %>" style="margin: 0px auto; max-width: 400px; display: block; color: white" alt="ANSOL" />
</div>
<%= yield %>

View File

@ -57,6 +57,8 @@ Rails.application.configure do
host: ENV['BASE_HOST'],
}
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

View File

@ -71,9 +71,7 @@ Rails.application.configure do
host: ENV['BASE_HOST'],
}
config.action_mailer.default_url_options = {
host: ENV['BASE_HOST'],
}
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).