summaryrefslogtreecommitdiff
path: root/app/models/tournament.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-07 04:47:50 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-07 04:47:50 -0400
commitc8b4045ba1ca02e750d6e8b15a1ced47b1930217 (patch)
treec5cb5380e61509541e8d6f1a17ca319267e4dca0 /app/models/tournament.rb
parentb5f430fd59f7140722cc7940356c1de1ddd6f4d4 (diff)
It works. Users can do peer review.
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r--app/models/tournament.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb
index aa331f0..4cbbf95 100644
--- a/app/models/tournament.rb
+++ b/app/models/tournament.rb
@@ -109,7 +109,7 @@ class Tournament < ActiveRecord::Base
num_teams = (self.players.count/self.min_players_per_team).floor
num_matches = num_teams - 1
for i in 1..num_matches
- self.matches.create(name: "Match #{i}", status: 0)
+ self.matches.create(name: "Match #{i}", status: 0, submitted_peer_evaluations: 0)
end
match_num = num_matches-1
team_num = 0