Fix DEPRECATION for services
This commit is contained in:
parent
a5a95abf06
commit
213e84b546
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class AccompagnateurService
|
|||
if @to == ASSIGN
|
||||
AssignTo.create(gestionnaire: @accompagnateur, procedure: @procedure)
|
||||
elsif @to == NOT_ASSIGN
|
||||
AssignTo.delete_all(gestionnaire: @accompagnateur, procedure: @procedure)
|
||||
AssignTo.where(gestionnaire: @accompagnateur, procedure: @procedure).delete_all
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue