summaryrefslogtreecommitdiff
path: root/lib/scheduling/roundrobin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scheduling/roundrobin.rb')
-rw-r--r--lib/scheduling/roundrobin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scheduling/roundrobin.rb b/lib/scheduling/roundrobin.rb
index d023cfb..fbb291e 100644
--- a/lib/scheduling/roundrobin.rb
+++ b/lib/scheduling/roundrobin.rb
@@ -7,7 +7,7 @@ module Scheduling
end
def create_matches
- num_teams = (self.tournament.players.count/self.tournament.min_players_per_team).floor
+ num_teams = (tournament.players.count/tournament.min_players_per_team).floor
num_matches = Float(num_teams/2)*(num_teams-1)
end