mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
241b842be1
commit
11de94748e
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
end
|
||||
|
||||
Rails::Initializer.run(:set_load_path)
|
|
@ -2,7 +2,6 @@
|
|||
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake.
|
||||
|
||||
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
||||
Rails::Initializer.run(:set_load_path)
|
||||
|
||||
require 'rake'
|
||||
require 'rake/testtask'
|
||||
|
|
Loading…
Reference in a new issue