raise exception if problem with destroy
This commit is contained in:
parent
675bbdad15
commit
88e73d4039
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ class User < ApplicationRecord
|
|||
dossier.delete_and_keep_track(administration)
|
||||
end
|
||||
dossiers.unscoped.destroy_all
|
||||
destroy
|
||||
destroy!
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue