demarches-normaliennes/app/mailers/avis_mailer.rb

10 lines
294 B
Ruby
Raw Normal View History

class AvisMailer < ApplicationMailer
def avis_invitation(avis)
@avis = avis
2018-05-30 18:45:46 +02:00
email = @avis.gestionnaire&.email || @avis.email
2018-05-31 15:26:02 +02:00
subject = "Donnez votre avis sur le dossier nº #{@avis.dossier.id} (#{@avis.dossier.procedure.libelle})"
2018-05-31 23:58:10 +02:00
2018-05-31 15:26:02 +02:00
mail(to: email, subject: subject)
end
end