diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-08 17:10:50 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-08 23:10:50 +0200 |
commit | 7a7d12d27f16370c3789aa97514da25c6e91ae4c (patch) | |
tree | 4c908050df715f94d06d4728a0d203a19de911b0 /app/mailers | |
parent | cd830a2fab3f3c640daeb55e024324b56c079557 (diff) |
Delegate Account#user_locale method and allow nil (#2927)
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/notification_mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index f308c403b..a944db137 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -71,7 +71,7 @@ class NotificationMailer < ApplicationMailer private def locale_for_account(account) - I18n.with_locale(account.user.locale || I18n.default_locale) do + I18n.with_locale(account.user_locale || I18n.default_locale) do yield end end |