From 11de94748e1543065748637b083984a69350b1a6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 30 Sep 2005 15:13:44 +0000 Subject: Run set load path so others can do boot and get path git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/environments/boot.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'railties/environments') diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb index 7f30e829a9..1df433a7eb 100644 --- a/railties/environments/boot.rb +++ b/railties/environments/boot.rb @@ -1,8 +1,10 @@ -RAILS_ROOT = File.join(File.dirname(__FILE__), '..') +RAILS_ROOT = File.join(File.dirname(__FILE__), '..') unless defined?(RAILS_ROOT) -unless File.directory?("#{RAILS_ROOT}/vendor/rails") +if File.directory?("#{RAILS_ROOT}/vendor/rails") + require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" +else require 'rubygems' require 'initializer' -else - require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" -end \ No newline at end of file +end + +Rails::Initializer.run(:set_load_path) \ No newline at end of file -- cgit v1.2.3