summaryrefslogtreecommitdiff
path: root/lib/seeding/early_bird_seeding.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-27 23:26:24 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-27 23:26:24 -0400
commit1c37ae521e29a5e0869aba52d324ed0cd4a830a6 (patch)
treee4488ed3feb5e5dc94a72cd46cff2aeef0dcd1f8 /lib/seeding/early_bird_seeding.rb
parent6cbf08bb7659dc3265b45d05a66170f1c69ce696 (diff)
parent4c572a775a7c28b102b4462af94214148e6df1d2 (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