summaryrefslogtreecommitdiff
path: root/app/models/tournament_stage.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/tournament_stage.rb')
-rw-r--r--app/models/tournament_stage.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/models/tournament_stage.rb b/app/models/tournament_stage.rb
index 84519b9..9352137 100644
--- a/app/models/tournament_stage.rb
+++ b/app/models/tournament_stage.rb
@@ -25,29 +25,6 @@ class TournamentStage < ActiveRecord::Base
return seeding.seed.pair(matches, players)
end
- def make_methods(dir)
- if @methods[dir].nil? or Rails.env.development?
- @methods[dir] = Dir.glob("#{Rails.root}/lib/#{dir}/*.rb").map{|filename| filename.sub(/.*\/(.*)\.rb/, /\1/)}
- end
- return @methods[dir]
- end
-
- def scoring_methods
- make_methods "scoring"
- end
-
- def sampling_methods
- make_methods "sampling"
- end
-
- def scheduling_methods
- make_methods "scheduling"
- end
-
- def seeding_methods
- make_methods "seeding"
- end
-
# Accessors to the configured methods
def scoring