diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 10:00:55 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 10:00:55 -0400 |
commit | e812bd1a13c1e02bf95a7299b08beee356c1cd5d (patch) | |
tree | d6644deaf57c2c25707543d59764f698ed92c990 /app/models/match.rb | |
parent | a75bd55c2cd3d8b53f61aa8d700fc510c8308f57 (diff) |
oops
Diffstat (limited to 'app/models/match.rb')
-rw-r--r-- | app/models/match.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/models/match.rb b/app/models/match.rb index 3cbe0da..1127598 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -57,11 +57,9 @@ class Match < ActiveRecord::Base methods_names = self.tournament_stage.tournament.sampling_methods methods_names.each do |method_name| method_class = "Sampling::#{sampling_name.camelcase}".constantize - if method_class.works_with(self.tournament_stage.tournament.game) - needed.each do |stat| - data[stat] ||= {} - data[stat][method] = method.can_get?(user, stat) - end + needed.each do |stat| + data[stat] ||= {} + data[stat][method] = method_class.can_get?(user, stat) end end |