diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-29 00:59:48 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-29 00:59:48 -0400 |
commit | 35700a053bb802efd01ac0b6d0ebefa0723d7817 (patch) | |
tree | ab379631e1b19dd77e66db6236e5bb1b6ecef6df /app/models/statistic.rb | |
parent | a1814bcfddcf2178ef5ccf35d95bc0917f9409fc (diff) | |
parent | cd0c7d73be76feffbaaea9200c485b2316604469 (diff) |
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/statistic.rb')
-rw-r--r-- | app/models/statistic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/statistic.rb b/app/models/statistic.rb index b4608b8..fefa3a8 100644 --- a/app/models/statistic.rb +++ b/app/models/statistic.rb @@ -16,7 +16,7 @@ class Statistic < ActiveRecord::Base after_save :update_match def update_match - if (self.name == "win") and (self.value > 0) + if (self.name == "win") and (self.value) self.match.winner = self.match.teams.find{|t| t.users.include? self.user} end if (self.match.status == 2) and (self.match.finished?) |