cache procedure_ids_with_notifications to avoid seeking the AR cache by going through the stack
This commit is contained in:
parent
e4de522b48
commit
b124579681
3 changed files with 8 additions and 3 deletions
|
@ -37,6 +37,9 @@ module Instructeurs
|
|||
'dossiers' => @dossiers_count_per_procedure.sum { |_, v| v },
|
||||
'archivés' => @dossiers_archived_count_per_procedure.sum { |_, v| v }
|
||||
}
|
||||
|
||||
@procedure_ids_en_cours_with_notifications = current_instructeur.procedure_ids_with_notifications(:en_cours)
|
||||
@procedure_ids_termines_with_notifications = current_instructeur.procedure_ids_with_notifications(:termine)
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue