diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-02-27 02:59:28 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-02-27 02:59:28 +0000 |
commit | 81ae38580baca3a8203f97d6c5088cfb3bbba6a0 (patch) | |
tree | 3c5541be1677d05275a8549f6060cdd4f3fb3075 /railties/lib | |
parent | 34f1413b48b26d568990b4ba7305feb012ea729c (diff) | |
download | rails-81ae38580baca3a8203f97d6c5088cfb3bbba6a0.tar.gz rails-81ae38580baca3a8203f97d6c5088cfb3bbba6a0.tar.bz2 rails-81ae38580baca3a8203f97d6c5088cfb3bbba6a0.zip |
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
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/plugin.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index 48f226640c..c5ee3e2896 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -914,4 +914,5 @@ class RecursiveHTTPFetcher end end +RAILS_ROOT = RailsEnvironment.default.root unless Object.const_defined?(:RAILS_ROOT) Commands::Plugin.parse! |