Skip to content

Commit

Permalink
Run set load path so others can do boot and get path
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Sep 30, 2005
1 parent 241b842 commit 11de947
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions railties/environments/boot.rb
Original file line number Original file line Diff line number Diff line change
@@ -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 'rubygems'
require 'initializer' require 'initializer'
else end
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
end Rails::Initializer.run(:set_load_path)
1 change: 0 additions & 1 deletion railties/fresh_rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake. # for example lib/tasks/switchtower.rake, and they will automatically be available to Rake.


require(File.join(File.dirname(__FILE__), 'config', 'boot')) require(File.join(File.dirname(__FILE__), 'config', 'boot'))
Rails::Initializer.run(:set_load_path)


require 'rake' require 'rake'
require 'rake/testtask' require 'rake/testtask'
Expand Down

0 comments on commit 11de947

Please sign in to comment.