fixes i18n error
This commit is contained in:
@@ -5,7 +5,7 @@ class Mailer < ApplicationMailer
|
|||||||
def comment(comment)
|
def comment(comment)
|
||||||
@comment = comment
|
@comment = comment
|
||||||
@commentable = comment.commentable
|
@commentable = comment.commentable
|
||||||
mail(to: @commentable.author.email, subject: t('mailers.comment.subject', commentable: t("activerecord.models.#{@commentable.class.name.downcase}").downcase)) if @commentable.present? && @commentable.author.present?
|
mail(to: @commentable.author.email, subject: t('mailers.comment.subject', commentable: t("activerecord.models.#{@commentable.class.name.downcase}", count: 1).downcase)) if @commentable.present? && @commentable.author.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def reply(reply)
|
def reply(reply)
|
||||||
|
|||||||
Reference in New Issue
Block a user