diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-26 23:45:25 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-26 23:45:25 -0400 |
commit | 6f19b51f0adf95b1d9bd8317388ecdbcb3756be7 (patch) | |
tree | c4be583ba9db126ef58db7a1900468ec0929df25 /app/models/tournament_stage.rb | |
parent | 9d8d6b023ce3390f3ccf9808e630505a15ebebe6 (diff) | |
parent | 9dd899559e4533c61089c3f9429574d2de20925e (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/tournament_stage.rb')
-rw-r--r-- | app/models/tournament_stage.rb | 23 |
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 |