summaryrefslogtreecommitdiff
path: root/app/models/match.rb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-28 21:32:09 -0400
committernfoy <nfoy@purdue.edu>2014-04-28 21:32:09 -0400
commitd52ceaf8d2b823b68edcf3614999b8639a0971f9 (patch)
treebdb969dbad788cb7e63665bf502c754765286db6 /app/models/match.rb
parent819fd70c1285bf5670b68842adad8c77c36d1076 (diff)
parent7410df080be95211daa2e97b8a57faa8aa903b0a (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/match.rb')
-rw-r--r--app/models/match.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index 57b7d36..85084f5 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -7,8 +7,8 @@ class Match < ActiveRecord::Base
def finished?
ok = true
- tournament_stage.scoring_method.stats_needed.each do |stat|
- ok &= statistics.where(match: self, name: stat).nil?
+ tournament_stage.scoring.stats_needed.each do |stat|
+ ok &= !statistics.where(match: self, name: stat).nil?
end
ok
end