lib/pancake/stack/bootloader.rb in pancake-0.1.18 vs lib/pancake/stack/bootloader.rb in pancake-0.1.19

- old
+ new

@@ -22,29 +22,19 @@ Dir["#{root}/mounts/*/pancake_init.rb"].each{|f| load f if File.exists?(f)} end end end -Pancake::Stack::BootLoader.add(:set_as_master) do +Pancake::Stack::BootLoader.add(:load_configuration, :level => :init) do def run! - return unless config[:master] - roots = stack_class.roots.dup - roots.each do |root| - stack_class.roots << File.join(root, "master") - end - end -end - -Pancake::Stack::BootLoader.add(:load_configuration) do - def run! stack_class.roots.each do |root| stack_class.paths_for(:config).each{|f| require f.join} end end end -Pancake::Stack::BootLoader.add(:load_application) do +Pancake::Stack::BootLoader.add(:load_application, :level => :init) do def run! stack_class.roots.each do |root| [:models, :controllers].each do |type| stack_class.paths_for(type).each{|f| require f.join} end @@ -61,10 +51,10 @@ # }) # # -Pancake::Stack::BootLoader.add(:load_routes) do +Pancake::Stack::BootLoader.add(:load_routes, :level => :init) do def run! stack_class.roots.each do |root| stack_class.paths_for(:router).each{|f| require f.join} end end