Remove the link between commentaire and user

This commit is contained in:
Paul Chavard 2021-04-22 14:44:58 +01:00
parent a640ec1d43
commit c20ad5ca17
7 changed files with 45 additions and 25 deletions

View file

@ -2,10 +2,10 @@ class CommentaireService
class << self
def build(sender, dossier, params)
case sender
when User
params[:user] = sender
when Instructeur
params[:instructeur] = sender
when Expert
params[:expert] = sender
end
build_with_email(sender.email, dossier, params)