Use a local variable instead of an instance variable

This commit is contained in:
gregoirenovel 2018-05-30 23:51:29 +02:00
parent bb8adba9b9
commit 7ea37abefa

View file

@ -9,9 +9,9 @@ class NotificationMailer < ApplicationMailer
def send_draft_notification(dossier) def send_draft_notification(dossier)
vars_mailer(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 end
def send_initiated_notification(dossier) def send_initiated_notification(dossier)