demarches-normaliennes/app/mailers/avis_mailer.rb
2018-06-01 00:00:11 +02:00

9 lines
294 B
Ruby

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