Fix destroy dossiers on procedure reset

This commit is contained in:
Paul Chavard 2018-09-19 17:12:06 +02:00
parent 143428fb3f
commit f6a6d8f457

View file

@ -114,7 +114,7 @@ class Procedure < ApplicationRecord
if locked?
raise "Can not reset a locked procedure."
else
dossiers.delete_all
dossiers.destroy_all
end
end