From cb81610e6091e3b6808b8e5c45ef9126b2fed94d Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Sat, 27 May 2017 01:19:33 +0200 Subject: [PATCH] Add brackets around arguments --- app/mailers/notification_mailer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index b2be1e922..6c7d4b91c 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -3,7 +3,7 @@ class NotificationMailer < ApplicationMailer after_action :create_commentaire_for_notification, only: :send_notification - def send_notification dossier, mail_template + def send_notification(dossier, mail_template) vars_mailer(dossier) @object = mail_template.object_for_dossier dossier @@ -12,7 +12,7 @@ class NotificationMailer < ApplicationMailer mail(subject: @object) { |format| format.html { @body } } end - def new_answer dossier + def new_answer(dossier) send_mail dossier, "Nouveau message pour votre dossier TPS nº #{dossier.id}" end @@ -26,12 +26,12 @@ class NotificationMailer < ApplicationMailer ) end - def vars_mailer dossier + def vars_mailer(dossier) @dossier = dossier @user = dossier.user end - def send_mail dossier, subject + def send_mail(dossier, subject) vars_mailer dossier mail(subject: subject)