9d88348e2e
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
20 lines
548 B
Ruby
20 lines
548 B
Ruby
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
|
|
|
|
unless defined?(RAILS_ROOT)
|
|
root_path = File.join(File.dirname(__FILE__), '..')
|
|
unless RUBY_PLATFORM =~ /mswin32/
|
|
require 'pathname'
|
|
root_path = Pathname.new(root_path).cleanpath(true).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
|
|
|
|
Rails::Initializer.run(:set_load_path)
|