1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-30 19:19:40 +00:00

Poolbracket does not keep a matches collection

This commit is contained in:
RJ Osborne
2015-05-25 00:45:31 -04:00
parent c855da0e6e
commit 20ef048f48
2 changed files with 73 additions and 67 deletions

View File

@@ -30,8 +30,10 @@ class Tournamentmatchgen
matches = Pool.new(weight).generatePools()
last_match = matches.sort_by{|m| m.round}.last
highest_round = last_match.round
@matches += Poolbracket.new.generateBracketMatches(matches, weight, highest_round)
Poolbracket.new(weight, highest_round).generateBracketMatches()
end
@tournament.save!
@matches = @tournament.matches
end
def generateMatches