From 39d1c3d504759ca8e2b872d43380263b66f5c9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Fri, 25 Sep 2015 13:47:42 +0200 Subject: [PATCH] fixes i18n error --- app/mailers/mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/mailer.rb b/app/mailers/mailer.rb index 844f61a87..8ce28060c 100644 --- a/app/mailers/mailer.rb +++ b/app/mailers/mailer.rb @@ -5,7 +5,7 @@ class Mailer < ApplicationMailer def comment(comment) @comment = comment @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 def reply(reply)