aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-02-27 02:59:28 +0000
committerRick Olson <technoweenie@gmail.com>2007-02-27 02:59:28 +0000
commit81ae38580baca3a8203f97d6c5088cfb3bbba6a0 (patch)
tree3c5541be1677d05275a8549f6060cdd4f3fb3075 /railties/lib/commands
parent34f1413b48b26d568990b4ba7305feb012ea729c (diff)
downloadrails-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/commands')
-rw-r--r--railties/lib/commands/plugin.rb1
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!