adds mailer asset host for staging and production envs

This commit is contained in:
rgarcia
2015-09-01 17:31:28 +02:00
parent 9838ba86ad
commit 0fc51bee60
2 changed files with 2 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ Rails.application.configure do
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name }
config.action_mailer.asset_host = "https://#{Rails.application.secrets.server_name}"
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).