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