use discard

This commit is contained in:
Paul Chavard 2020-02-05 16:09:03 +01:00
parent 674c24c4f7
commit 1ce1c1e6d0
16 changed files with 41 additions and 69 deletions

View file

@ -9,10 +9,10 @@ module Manager
def scoped_resource
if unfiltered_list?
# Don't display deleted dossiers in the unfiltered list…
Procedure
Procedure.kept
else
# … but allow them to be searched and displayed.
Procedure.with_hidden
Procedure.with_discarded
end
end