From 23f558290707dd864d98f8dc2afb4033a513ba02 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Sat, 27 May 2017 01:18:56 +0200 Subject: [PATCH] Improve a variable name --- app/mailers/notification_mailer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index d2ddbb195..b2be1e922 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -6,10 +6,10 @@ class NotificationMailer < ApplicationMailer def send_notification dossier, mail_template vars_mailer(dossier) - @obj = mail_template.object_for_dossier dossier + @object = mail_template.object_for_dossier dossier @body = mail_template.body_for_dossier dossier - mail(subject: @obj) { |format| format.html { @body } } + mail(subject: @object) { |format| format.html { @body } } end def new_answer dossier @@ -22,7 +22,7 @@ class NotificationMailer < ApplicationMailer Commentaire.create( dossier: @dossier, email: I18n.t("dynamics.contact_email"), - body: ["[#{@obj}]", @body].join("

") + body: ["[#{@object}]", @body].join("

") ) end