models: add a Procedure#with_hidden scope, and remove unscoped usages

This avoids the broad use of `unscoped` to remove the `hidden_at`
clause.
This commit is contained in:
Pierre de La Morinerie 2020-01-28 16:41:15 +01:00
parent 4efea77280
commit 1448d5b098
7 changed files with 28 additions and 6 deletions

View file

@ -12,7 +12,7 @@ module Manager
Procedure
else
# … but allow them to be searched and displayed.
Procedure.unscope(:where)
Procedure.with_hidden
end
end