]> projects.mako.cc - selectricity-live/blob - config/boot.rb
Added processing and presentatin of results.
[selectricity-live] / config / boot.rb
1 unless defined?(RAILS_ROOT)
2   root_path = File.join(File.dirname(__FILE__), '..')
3   unless RUBY_PLATFORM =~ /mswin32/
4     require 'pathname'
5     root_path = Pathname.new(root_path).cleanpath(true).to_s
6   end
7   RAILS_ROOT = root_path
8 end
9
10 if File.directory?("#{RAILS_ROOT}/vendor/rails")
11   require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
12 else
13   require 'rubygems'
14   require 'initializer'
15 end
16
17 Rails::Initializer.run(:set_load_path)

Benjamin Mako Hill || Want to submit a patch?