From 4035c852212671627a000cda7c1f8439b47a70d5 Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Sat, 26 Apr 2014 18:23:53 -0400 Subject: Removed the self.tourn from roundrobin.rb. Also, last time we meant meat as in weiners. Super fat ones. Also Luke gave Davis and I some broken ass code. --- lib/scheduling/roundrobin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3