summaryrefslogtreecommitdiff
path: root/lib/seeding/early_bird_seeding.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-28 00:04:47 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-28 00:04:47 -0400
commit6b66877bda4c0e4a33bb3109304636d5ada85904 (patch)
tree7065307802fec8452afc89c8a7b445fd2ceca772 /lib/seeding/early_bird_seeding.rb
parent33fcf6de9feaaa6f90dfe5082e08d280c930dae1 (diff)
parent7a4832621f1a0bb2e4b86ee9f879a73df0188a3e (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/seeding/early_bird_seeding.rb')
-rw-r--r--lib/seeding/early_bird_seeding.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/seeding/early_bird_seeding.rb b/lib/seeding/early_bird_seeding.rb
index 488a1a2..5c289ed 100644
--- a/lib/seeding/early_bird_seeding.rb
+++ b/lib/seeding/early_bird_seeding.rb
@@ -7,7 +7,7 @@ module Seeding
teams = 0
tournament.players.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