Notifie tous les instructeurs lors dépôt dossier
- envoie un mail à tous les instructeurs d'une procédure après le dépôt d'un nouveau dossier
This commit is contained in:
parent
f618ab5ba2
commit
ae18ff6627
6 changed files with 41 additions and 0 deletions
|
@ -26,6 +26,7 @@ class Procedure < ApplicationRecord
|
|||
has_many :administrateurs_procedures
|
||||
has_many :administrateurs, through: :administrateurs_procedures, after_remove: -> (procedure, _admin) { procedure.validate! }
|
||||
has_many :groupe_instructeurs, dependent: :destroy
|
||||
has_many :instructeurs, through: :groupe_instructeurs
|
||||
|
||||
has_many :dossiers, through: :groupe_instructeurs, dependent: :restrict_with_exception
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue