From 2e0abb054c80e264064f5cf31916528f75362a84 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 31 May 2018 08:54:16 +0200 Subject: [PATCH] Stop doing something useless --- app/mailers/notification_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index 48897fffd..1ae798e0f 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -36,12 +36,12 @@ class NotificationMailer < ApplicationMailer private def vars_mailer(dossier) - @dossier = dossier @user = dossier.user end def send_mail(dossier, subject) vars_mailer(dossier) + @dossier = dossier mail(subject: subject) end