summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-28 15:03:50 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-28 15:03:50 -0400
commita528cedd36c77487496147b5880205799dbcb242 (patch)
tree5f70513055373d3e10b90aa5dffb65e398a2759f /app/models
parentb2bd85de2d7ca642dcef62aa0ef1eee078be7938 (diff)
I fixed it. added self and fixed variable names.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/match.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index 1127598..4c7acbf 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -56,7 +56,7 @@ class Match < ActiveRecord::Base
needed = self.tournament_stage.scoring.stats_needed
methods_names = self.tournament_stage.tournament.sampling_methods
methods_names.each do |method_name|
- method_class = "Sampling::#{sampling_name.camelcase}".constantize
+ method_class = "Sampling::#{method_name.camelcase}".constantize
needed.each do |stat|
data[stat] ||= {}
data[stat][method] = method_class.can_get?(user, stat)