1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 14:36:59 +00:00

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

This reverts commit 911faceb7c.

Permissions to edit a wrestler are not working in production.
This commit is contained in:
2016-01-22 13:21:13 +00:00
parent 285cfa9647
commit e48d473807
6 changed files with 16 additions and 16 deletions

View File

@@ -241,7 +241,7 @@ class TournamentsController < ApplicationController
private
# Use callbacks to share common setup or constraints between actions.
def set_tournament
@tournament = Tournament.where(:id => params[:id]).includes(:schools,:weights,:mats,:matches,:user,:wrestlers,:delegates).first
@tournament = Tournament.where(:id => params[:id]).includes(:schools,:weights,:mats,:matches,:user,:wrestlers).first
end
# Never trust parameters from the scary internet, only allow the white list through.