use discard
This commit is contained in:
parent
674c24c4f7
commit
1ce1c1e6d0
16 changed files with 41 additions and 69 deletions
|
@ -108,7 +108,7 @@ class User < ApplicationRecord
|
|||
dossiers.each do |dossier|
|
||||
dossier.delete_and_keep_track(administration)
|
||||
end
|
||||
dossiers.with_hidden.destroy_all
|
||||
dossiers.with_discarded.destroy_all
|
||||
destroy!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue