From e79482fd076a659f94d3181a1cb4fdf4886e4315 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 2 Nov 2015 11:36:15 -0500 Subject: [PATCH] including mats on tournament query --- app/controllers/static_pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index d16a3e2..6bc5935 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -6,7 +6,7 @@ class StaticPagesController < ApplicationController end def up_matches if params[:tournament] - @tournament = Tournament.where(:id => params[:tournament]).includes(:matches).first + @tournament = Tournament.where(:id => params[:tournament]).includes(:matches,:mats).first end if @tournament @matches = @tournament.matches.where(mat_id: nil).order('bout_number ASC').limit(10).includes(:wrestlers)