From 7ea37abefa1c4d7afe34dbe26c42dfaee4747676 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Wed, 30 May 2018 23:51:29 +0200 Subject: [PATCH] Use a local variable instead of an instance variable --- app/mailers/notification_mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index 749951da7..3440fd3f8 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -9,9 +9,9 @@ class NotificationMailer < ApplicationMailer def send_draft_notification(dossier) vars_mailer(dossier) - @subject = "Retrouvez votre brouillon pour la démarche : #{dossier.procedure.libelle}" + subject = "Retrouvez votre brouillon pour la démarche : #{dossier.procedure.libelle}" - mail(subject: @subject) + mail(subject: subject) end def send_initiated_notification(dossier)