From c839e2e843d0e5b73a6f3d219716b52c6c078f94 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 9 Jun 2017 18:00:20 -0400 Subject: [PATCH] Fixed a eager load bug --- app/controllers/tournaments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index fede68b..a53c88e 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -195,7 +195,7 @@ class TournamentsController < ApplicationController end def show - @schools = @tournament.schools(:delegates) + @schools = @tournament.schools.includes(:delegates) @weights = @tournament.weights.sort_by{|x|[x.max]} @mats = @tournament.mats end