Remove useless from parameter in mailers

We already defined a default one in
ApplicationMailer
This commit is contained in:
gregoirenovel 2017-05-11 18:24:43 +02:00
parent 503f174f4b
commit e14d1a6c15
5 changed files with 5 additions and 8 deletions

View file

@ -18,7 +18,6 @@ class GestionnaireMailer < ApplicationMailer
def send_mail email, args, subject
vars_mailer email, args
mail(from: "tps@apientreprise.fr", to: email,
subject: subject)
mail(to: email, subject: subject)
end
end

View file

@ -19,8 +19,7 @@ class InviteMailer < ApplicationMailer
end
def send_mail email, subject, reply_to
mail(from: "tps@apientreprise.fr",
to: email,
mail(to: email,
subject: subject,
reply_to: reply_to)
end

View file

@ -4,7 +4,7 @@ class NewAdminMailer < ApplicationMailer
@admin = admin
@password = password
mail(from: "tps@apientreprise.fr", to: 'tech@apientreprise.fr',
mail(to: 'tech@apientreprise.fr',
subject: "Création d'un compte Admin TPS")
end
end

View file

@ -1,6 +1,5 @@
class NotificationMailer < ApplicationMailer
default from: 'tps@apientreprise.fr',
to: Proc.new { @user.email }
default to: Proc.new { @user.email }
def send_notification dossier, mail_template
vars_mailer(dossier)

View file

@ -3,7 +3,7 @@ class WelcomeMailer < ApplicationMailer
@user = user
mail(from: "tps@apientreprise.fr", to: user.email,
mail(to: user.email,
subject: "Création de votre compte TPS")
end
end