summaryrefslogtreecommitdiff
path: root/app/models/match.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-29 00:59:48 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-29 00:59:48 -0400
commit35700a053bb802efd01ac0b6d0ebefa0723d7817 (patch)
treeab379631e1b19dd77e66db6236e5bb1b6ecef6df /app/models/match.rb
parenta1814bcfddcf2178ef5ccf35d95bc0917f9409fc (diff)
parentcd0c7d73be76feffbaaea9200c485b2316604469 (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/match.rb')
-rw-r--r--app/models/match.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index 5c3a022..85084f5 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -46,6 +46,12 @@ class Match < ActiveRecord::Base
return html.html_safe
end
+ def start_sampling
+ method_classes.each do |klass|
+ klass.new(self).start
+ end
+ end
+
private
def figure_sampling_methods
if @sampling_methods.nil?