mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b7801ff71e
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
14 lines
No EOL
372 B
Ruby
14 lines
No EOL
372 B
Ruby
unless defined?(RAILS_ROOT)
|
|
require 'pathname'
|
|
root_path = Pathname.new(File.join(File.dirname(__FILE__), '..'))
|
|
RAILS_ROOT = root_path.cleanpath.to_s + '/'
|
|
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) |