From e812bd1a13c1e02bf95a7299b08beee356c1cd5d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 28 Apr 2014 10:00:55 -0400 Subject: oops --- app/models/match.rb | 8 +++----- 1 file 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 -- cgit v1.2.3