Permalink
Browse files

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
  • Loading branch information...
1 parent 34f1413 commit 81ae38580baca3a8203f97d6c5088cfb3bbba6a0 @technoweenie technoweenie committed Feb 27, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/commands/plugin.rb
@@ -914,4 +914,5 @@ def fetch_dir(url)
end
end
+RAILS_ROOT = RailsEnvironment.default.root unless Object.const_defined?(:RAILS_ROOT)
Commands::Plugin.parse!

0 comments on commit 81ae385

Please sign in to comment.