17 lines
566 B
Ruby
17 lines
566 B
Ruby
class DossierMailer < ApplicationMailer
|
||
layout 'mailers/layout'
|
||
|
||
def notify_deletion_to_user(deleted_dossier, to_email)
|
||
@deleted_dossier = deleted_dossier
|
||
subject = "Votre dossier n° #{@deleted_dossier.dossier_id} a bien été supprimé"
|
||
|
||
mail(to: to_email, subject: subject)
|
||
end
|
||
|
||
def notify_deletion_to_administration(deleted_dossier, to_email)
|
||
@deleted_dossier = deleted_dossier
|
||
subject = "Le dossier n° #{@deleted_dossier.dossier_id} a été supprimé à la demande de l'usager"
|
||
|
||
mail(to: to_email, subject: subject)
|
||
end
|
||
end
|