summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-28 00:00:47 -0400
committertkimia <tkimia@purdue.edu>2014-04-28 00:00:47 -0400
commit919ba959bbc782315b0a8b171aa96e2118a43067 (patch)
tree572f84d4ccb3cca0abc558fdaf1b7633c33fe82c /app/models
parent1c37ae521e29a5e0869aba52d324ed0cd4a830a6 (diff)
fixed the db seeds. They can now be started
Diffstat (limited to 'app/models')
-rw-r--r--app/models/match.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index d4c0ce5..ff81d68 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -12,6 +12,7 @@ class Match < ActiveRecord::Base
ok = true
tournament_stage.scoring_method.stats_needed.each do |stat|
ok &= statistics.where(match: self, name: stat).nil?
+ end
ok
end