diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-23 11:32:33 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-23 11:32:33 -0400 |
commit | c846cd71411ec3373a5229cacafe0df6b3673543 (patch) | |
tree | c6b5d0953295e6939c9da20d4a7ba6a601e54558 /app/models | |
parent | 8593bcdf2471ce8d818e7b83e93fbe2d850f5029 (diff) |
Auto-(re)load files in lib/
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/tournament_stage.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/tournament_stage.rb b/app/models/tournament_stage.rb index 8e0074d..0775305 100644 --- a/app/models/tournament_stage.rb +++ b/app/models/tournament_stage.rb @@ -41,7 +41,6 @@ class TournamentStage < ActiveRecord::Base private def set_scheduling if @scheduling.nil? - require "scheduling/#{self.scheduling}" @scheduling = "Scheduling::#{self.scheduling.capitalize}".constantize.new(self) end return @scheduling @@ -51,14 +50,13 @@ class TournamentStage < ActiveRecord::Base def set_pairing if @pairing.nil? if(@tournament.randomized_teams) - require "pairing/#{self.pairing}" @pairing = "Pairing::RandomPairing" - return @pairing #elsif(setTeams) #@pairing = Pre built #return @pairing end end + return @pairing end private |