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:
parent
4efea77280
commit
1448d5b098
7 changed files with 28 additions and 6 deletions
|
@ -12,7 +12,7 @@ module Manager
|
|||
Procedure
|
||||
else
|
||||
# … but allow them to be searched and displayed.
|
||||
Procedure.unscope(:where)
|
||||
Procedure.with_hidden
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue