Skip to content

Commit

Permalink
Only use config if non empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmike committed May 4, 2014
1 parent 28f3218 commit 85e87f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -68,7 +68,7 @@

config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_options = {from: default_from = CONFIG['default_from'] || ('no-reply@' + default_hostname) }
config.action_mailer.default_options = {from: default_from = CONFIG['default_from'].presence || ('no-reply@' + default_hostname) }

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found).
Expand Down

0 comments on commit 85e87f2

Please sign in to comment.