Add Bullet gem for dev & fix N+1 queries issues for core index actions

This commit is contained in:
sto
2026-03-10 15:51:26 +01:00
parent ee65212f57
commit 8a993fa310
7 changed files with 17 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ class ContestsController < ApplicationController
def index
authorize :contest
@contests = current_user.contests
@contests = current_user.contests.includes([ :contestants, puzzles: [ :image_attachment ] ])
@title = I18n.t("contests.index.title", username: current_user.username)
end