Sha256: 4a459958c6ed992ef30318dd07da6f566e018f7e93963556cb1eb36b21f4602c
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
run_once do require File.join_from_here('paths.rb') require File.join_from_here('configuration.rb') require File.join_from_here('logging.rb') require File.join_from_here('extensions.rb') require File.join_from_here('assets.rb') require File.join_from_here('core.rb') require File.join_from_here('gems.rb') require File.join_from_here('plugins.rb') require File.join_from_here('lib.rb') init_message('application') Mack.search_path(:app).each do |path| # make sure that default_controller is available to other controllers dcont = File.join(path, 'controllers', 'default_controller.rb') require dcont if File.exists?(dcont) Dir.glob(File.join(path, "**/*.rb")).each do |d| begin d = File.expand_path(d) # puts d require d rescue NameError => e if e.message.match("uninitialized constant") mod = e.message.gsub("uninitialized constant ", "") x =%{ module ::#{mod} end } eval(x) require d else raise e end end end end # Add default assets assets_mgr.defaults do |a| a.add_css "scaffold" if File.exists?Mack::Paths.stylesheets("scaffold.css") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mack-0.8.1 | lib/mack/boot/app.rb |
mack-0.8.2 | lib/mack/boot/app.rb |
mack-0.8.3.1 | lib/mack/boot/app.rb |
mack-0.8.3 | lib/mack/boot/app.rb |