lib/initialization/initializer.rb in mack-0.4.5 vs lib/initialization/initializer.rb in mack-0.4.6

- old
+ new

@@ -10,10 +10,13 @@ require 'singleton' require 'uri' require 'drb' require 'rinda/ring' require 'rinda/tuplespace' +require 'builder' +require 'erubis' +require 'erb' # Set up Mack constants, if they haven't already been set up. unless Object.const_defined?("MACK_ENV") (Object::MACK_ENV = (ENV["MACK_ENV"] ||= "development")).to_sym end @@ -27,9 +30,10 @@ Object::MACK_LAYOUTS = File.join(MACK_VIEWS, "layouts") unless Object.const_defined?("MACK_LAYOUTS") Object::MACK_PLUGINS = File.join(MACK_ROOT, "vendor", "plugins") unless Object.const_defined?("MACK_PLUGINS") unless Object.const_defined?("MACK_INITIALIZED") puts "Starting application in #{MACK_ENV} mode." + puts "Mack root: #{MACK_ROOT}" Object::MACK_INITIALIZED = true # Set up 'Rails' constants to allow for easier use of existing gems/plugins like application_configuration. # I would like to take these out eventually, but for right now, it's not doing too much harm. \ No newline at end of file