summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/match.rb8
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