cache procedure_ids_with_notifications to avoid seeking the AR cache by going through the stack

This commit is contained in:
simon lehericey 2020-09-10 21:03:50 +02:00 committed by LeSim (Rebase PR Action)
parent e4de522b48
commit b124579681
3 changed files with 8 additions and 3 deletions

View file

@ -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