From 81ae38580baca3a8203f97d6c5088cfb3bbba6a0 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Tue, 27 Feb 2007 02:59:28 +0000 Subject: 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 --- railties/lib/commands/plugin.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/commands') 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! -- cgit v1.2.3