Avoid i18n health warning for en locale by using symbol scope with :count

This commit is contained in:
Matt Jankowski 2017-04-16 12:43:22 -04:00
parent 0a82d959a5
commit a1429bcec2

View file

@ -59,7 +59,12 @@ class NotificationMailer < ApplicationMailer
return if @notifications.empty?
I18n.with_locale(@me.user.locale || I18n.default_locale) do
mail to: @me.user.email, subject: I18n.t('notification_mailer.digest.subject', count: @notifications.size)
mail to: @me.user.email,
subject: I18n.t(
:subject,
scope: [:notification_mailer, :digest],
count: @notifications.size
)
end
end
end