From bff35cfbb4c614fa84a7dc54f08db799817acd8d Mon Sep 17 00:00:00 2001 From: rsmokeUM Date: Wed, 18 Mar 2026 15:42:41 -0400 Subject: [PATCH] Update contest descriptions table to use size method for instance count - Changed the method for counting contest instances from `count` to `size` in the contest descriptions table view, optimizing performance by leveraging the already loaded association. This change enhances the efficiency of the contest descriptions display, aligning with recent performance improvements in the application. --- app/views/containers/_contest_descriptions_table.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/containers/_contest_descriptions_table.html.erb b/app/views/containers/_contest_descriptions_table.html.erb index 8bc1f7ef..f2d10276 100644 --- a/app/views/containers/_contest_descriptions_table.html.erb +++ b/app/views/containers/_contest_descriptions_table.html.erb @@ -19,7 +19,7 @@
Short name: <%= description.short_name %> - <%= pluralize(description.contest_instances.count, 'instance') %> + <%= pluralize(description.contest_instances.size, 'instance') %>
<%= render_eligibility_rules(description) %>