1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Eager load users and delegates for tournaments, eager load delegates and tournament for schools

This commit is contained in:
2016-01-20 20:37:15 +00:00
parent c0ab1cc56c
commit 911faceb7c
6 changed files with 16 additions and 16 deletions

View File

@@ -49,6 +49,6 @@ class MatchesController < ApplicationController
end
def check_access
authorize! :manage, @match.tournament
authorize! :manage, Tournament.where(:id => @match.tournament.id).includes(:delegates,:user).first
end
end