lib/initialization/initializer.rb in mack-0.4.1 vs lib/initialization/initializer.rb in mack-0.4.2

- old
+ new

@@ -55,10 +55,16 @@ # ------------------------------------------------------------------------ # set up application stuff: # set up routes: - require File.join(MACK_ROOT, "config", "routes") + require File.join(MACK_CONFIG, "routes") + + # set up initializers: + Dir.glob(File.join(MACK_CONFIG, "initializers", "**/*.rb")) do |d| + require d + end + Mack::Utils::GemManager.instance.do_requires # require 'plugins': require File.join(File.dirname(__FILE__), "initializers", "plugins.rb") # require 'app' files: \ No newline at end of file