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