From e3a1323d39ba484909d09289795a4eef76ef6f00 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 17 Mar 2015 09:32:11 -0400 Subject: [PATCH] Still trying to generate matches from tournament. --- app/models/tournament.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/tournament.rb b/app/models/tournament.rb index ea79a6b..808a20b 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -15,6 +15,7 @@ class Tournament < ActiveRecord::Base @wrestlers = self.wrestlers self.weights.sort_by{|x|[x.max]}.each do |weight| @upcomingMatches = generateMatchups(@matches,@wrestlers,weight) + @matches = @upcomingMatches end @upcomingMatches = assignBouts(@upcomingMatches) return @upcomingMatches