1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-10 07:48:29 +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 end
def show def show
@schools = @tournament.schools(:delegates) @schools = @tournament.schools.includes(:delegates)
@weights = @tournament.weights.sort_by{|x|[x.max]} @weights = @tournament.weights.sort_by{|x|[x.max]}
@mats = @tournament.mats @mats = @tournament.mats
end end