diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 00:04:30 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 00:04:30 -0400 |
commit | 33fcf6de9feaaa6f90dfe5082e08d280c930dae1 (patch) | |
tree | 236e6422575938e702fcc3d93906ef863e650499 /app/models | |
parent | 2d7313767442956eab00671ac555c0ce4e583b5f (diff) |
Re-jigger the sampling interface
Diffstat (limited to 'app/models')
-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 c2df6e0..1edac8f 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -9,6 +9,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 |