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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user