summaryrefslogtreecommitdiff
path: root/lib/seeding/random_seeding.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/seeding/random_seeding.rb')
-rw-r--r--lib/seeding/random_seeding.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/seeding/random_seeding.rb b/lib/seeding/random_seeding.rb
index bc332ef..65979bc 100644
--- a/lib/seeding/random_seeding.rb
+++ b/lib/seeding/random_seeding.rb
@@ -7,7 +7,7 @@ module Seeding
teams = 0
tournament.players.shuffle.each_slice(tournament.min_players_per_team) do |slice|
if teams < tournament.min_teams_per_match
- match.teams[teams].players += slice
+ match.teams.push Team.create(players: slice)
teams += 1
else
match_num += 1