i18n-tasks: add hint for default_i18n_subject in mailers
This commit is contained in:
parent
f050a4757a
commit
8748b6f494
1 changed files with 2 additions and 0 deletions
|
@ -170,6 +170,8 @@ class DossierMailer < ApplicationMailer
|
|||
|
||||
# This is an override of `default_i18n_subject` method
|
||||
# https://api.rubyonrails.org/v5.0.0/classes/ActionMailer/Base.html#method-i-default_i18n_subject
|
||||
#
|
||||
# i18n-tasks-use t("dossier_mailer.#{action}.subject")
|
||||
def default_i18n_subject(interpolations = {})
|
||||
if interpolations[:state]
|
||||
mailer_scope = self.class.mailer_name.tr('/', '.')
|
||||
|
|
Loading…
Reference in a new issue