Sort contests showing most recently created first
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 15s
CI / test (push) Successful in 40s

This commit is contained in:
sto
2026-03-10 15:55:31 +01:00
parent 8a993fa310
commit 54cd8cdcb0

View File

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