demarches-normaliennes/app/mailers/avis_mailer.rb
2018-05-31 11:49:25 +02:00

7 lines
271 B
Ruby

class AvisMailer < ApplicationMailer
def avis_invitation(avis)
@avis = avis
email = @avis.gestionnaire&.email || @avis.email
mail(to: email, subject: "Donnez votre avis sur le dossier nº #{@avis.dossier.id} (#{@avis.dossier.procedure.libelle})")
end
end