Fix DEPRECATION for services

This commit is contained in:
Xavier J 2016-11-15 03:56:26 +01:00
parent a5a95abf06
commit 213e84b546

View file

@ -12,7 +12,7 @@ class AccompagnateurService
if @to == ASSIGN if @to == ASSIGN
AssignTo.create(gestionnaire: @accompagnateur, procedure: @procedure) AssignTo.create(gestionnaire: @accompagnateur, procedure: @procedure)
elsif @to == NOT_ASSIGN elsif @to == NOT_ASSIGN
AssignTo.delete_all(gestionnaire: @accompagnateur, procedure: @procedure) AssignTo.where(gestionnaire: @accompagnateur, procedure: @procedure).delete_all
end end
end end