0
0
Fork 0

Delegate Account#user_locale method and allow nil (#2927)

This commit is contained in:
Matt Jankowski 2017-05-08 17:10:50 -04:00 committed by Eugen Rochko
parent cd830a2fab
commit 7a7d12d27f
4 changed files with 5 additions and 6 deletions

View file

@ -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