diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 2f2c10855..a51759245 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -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