summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/match.rb10
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