Remove useless from parameter in mailers
We already defined a default one in ApplicationMailer
This commit is contained in:
parent
503f174f4b
commit
e14d1a6c15
5 changed files with 5 additions and 8 deletions
|
@ -18,7 +18,6 @@ class GestionnaireMailer < ApplicationMailer
|
||||||
def send_mail email, args, subject
|
def send_mail email, args, subject
|
||||||
vars_mailer email, args
|
vars_mailer email, args
|
||||||
|
|
||||||
mail(from: "tps@apientreprise.fr", to: email,
|
mail(to: email, subject: subject)
|
||||||
subject: subject)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,8 +19,7 @@ class InviteMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_mail email, subject, reply_to
|
def send_mail email, subject, reply_to
|
||||||
mail(from: "tps@apientreprise.fr",
|
mail(to: email,
|
||||||
to: email,
|
|
||||||
subject: subject,
|
subject: subject,
|
||||||
reply_to: reply_to)
|
reply_to: reply_to)
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,7 +4,7 @@ class NewAdminMailer < ApplicationMailer
|
||||||
@admin = admin
|
@admin = admin
|
||||||
@password = password
|
@password = password
|
||||||
|
|
||||||
mail(from: "tps@apientreprise.fr", to: 'tech@apientreprise.fr',
|
mail(to: 'tech@apientreprise.fr',
|
||||||
subject: "Création d'un compte Admin TPS")
|
subject: "Création d'un compte Admin TPS")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
class NotificationMailer < ApplicationMailer
|
class NotificationMailer < ApplicationMailer
|
||||||
default from: 'tps@apientreprise.fr',
|
default to: Proc.new { @user.email }
|
||||||
to: Proc.new { @user.email }
|
|
||||||
|
|
||||||
def send_notification dossier, mail_template
|
def send_notification dossier, mail_template
|
||||||
vars_mailer(dossier)
|
vars_mailer(dossier)
|
||||||
|
|
|
@ -3,7 +3,7 @@ class WelcomeMailer < ApplicationMailer
|
||||||
|
|
||||||
@user = user
|
@user = user
|
||||||
|
|
||||||
mail(from: "tps@apientreprise.fr", to: user.email,
|
mail(to: user.email,
|
||||||
subject: "Création de votre compte TPS")
|
subject: "Création de votre compte TPS")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue