fixes i18n error

This commit is contained in:
Juanjo Bazán
2015-09-25 13:47:42 +02:00
parent 453aec53fd
commit 39d1c3d504

View File

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