Reduce SQL queries in the study groups controller

Fixes CODEOCEAN-Y7
This commit is contained in:
Sebastian Serth
2023-09-25 22:15:27 +02:00
parent a9d756171b
commit 684639696d
3 changed files with 8 additions and 5 deletions

View File

@ -9,4 +9,4 @@ h1 = StudyGroup.model_name.human(count: 2)
= f.search_field(:name_cont, class: 'form-control', placeholder: t('activerecord.attributes.study_group.name'))
= render('table', study_groups: @study_groups)
= render('shared/pagination', collection: @study_groups)
= render('shared/pagination', collection: @study_groups_paginate)