raise exception if problem with destroy

This commit is contained in:
Christophe Robillard 2020-01-21 14:28:04 +01:00
parent 675bbdad15
commit 88e73d4039
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ class User < ApplicationRecord
dossier.delete_and_keep_track(administration)
end
dossiers.unscoped.destroy_all
destroy
destroy!
end
private