Delete button, notify user and admin then delete dossier
This commit is contained in:
parent
55a3d59e38
commit
eb1fbb7dbc
8 changed files with 69 additions and 22 deletions
|
@ -1,6 +1,10 @@
|
|||
# Preview all emails at http://localhost:3000/rails/mailers/dossier_mailer
|
||||
class DossierMailerPreview < ActionMailer::Preview
|
||||
def ask_deletion
|
||||
DossierMailer.ask_deletion(Dossier.last)
|
||||
def notify_deletion_to_user
|
||||
DossierMailer.notify_deletion_to_user(DeletedDossier.last, "user@ds.fr")
|
||||
end
|
||||
|
||||
def notify_deletion_to_administration
|
||||
DossierMailer.notify_deletion_to_administration(DeletedDossier.last, "admin@ds.fr")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue