diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-28 00:08:01 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-28 00:08:01 -0400 |
commit | 1fb957aeb5c6eb8ec57ecf28b18479bb47093243 (patch) | |
tree | 387f8d4a5aebe7593dd6f09a0d277e1407facb36 /app | |
parent | 952387be24043e76dfd9b7a461ee31d1246fa58e (diff) | |
parent | 6b66877bda4c0e4a33bb3109304636d5ada85904 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app')
-rw-r--r-- | app/models/match.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/match.rb b/app/models/match.rb index ff81d68..fa15980 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -20,6 +20,16 @@ class Match < ActiveRecord::Base winner.players.include? player end + def users + ret = [] + self.teams.each{|t| ret.concat(t.users)} + return ret + end + + def stats_from(sampling_class) + # TODO + end + def handle_sampling(params) # TODO end |