1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00

Fixed a eager load bug

This commit is contained in:
2017-06-09 18:00:20 -04:00
parent 0fb2e7009b
commit c839e2e843

View File

@@ -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