1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/environments/boot.rb
Nicholas Seckar b7801ff71e Shorten long line
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 22:55:52 +00:00

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)