2006-03-19 22:49:53 +01:00
|
|
|
unless defined?(RAILS_ROOT)
|
|
|
|
root_path = File.join(File.dirname(__FILE__), '..')
|
|
|
|
unless RUBY_PLATFORM =~ /mswin32/
|
|
|
|
require 'pathname'
|
|
|
|
root_path = Pathname.new(root_path).cleanpath.to_s
|
|
|
|
end
|
|
|
|
RAILS_ROOT = root_path
|
|
|
|
end
|
|
|
|
|
|
|
|
if File.directory?("#{RAILS_ROOT}/vendor/rails")
|
|
|
|
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
|
|
|
|
else
|
|
|
|
require 'rubygems'
|
|
|
|
require 'initializer'
|
|
|
|
end
|
|
|
|
|
2005-11-02 06:34:07 +01:00
|
|
|
Rails::Initializer.run(:set_load_path)
|