set the RAILS_ROOT for script/plugin if it's not set already

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Rick Olson
2007-02-27 02:59:28 +00:00
parent 34f1413b48
commit 81ae38580b

View File

@@ -914,4 +914,5 @@ class RecursiveHTTPFetcher
end
end
RAILS_ROOT = RailsEnvironment.default.root unless Object.const_defined?(:RAILS_ROOT)
Commands::Plugin.parse!