diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-13 18:18:08 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-13 18:18:08 +0200 |
commit | f68e7a3987adf2cffe0e48263d117839c2028185 (patch) | |
tree | 2ac5f0da1bb2e11e48c6f68a2598d4761837fd20 /railties/lib/commands | |
parent | 21019304f07f9ba70ef0ec4434d96321cebc266c (diff) | |
download | rails-f68e7a3987adf2cffe0e48263d117839c2028185.tar.gz rails-f68e7a3987adf2cffe0e48263d117839c2028185.tar.bz2 rails-f68e7a3987adf2cffe0e48263d117839c2028185.zip |
Remove generator environment until we have a gem manifest.
Diffstat (limited to 'railties/lib/commands')
-rw-r--r-- | railties/lib/commands/destroy.rb | 2 | ||||
-rwxr-xr-x | railties/lib/commands/generate.rb | 2 | ||||
-rw-r--r-- | railties/lib/commands/update.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/commands/destroy.rb b/railties/lib/commands/destroy.rb index 6e740bb754..5013d30b83 100644 --- a/railties/lib/commands/destroy.rb +++ b/railties/lib/commands/destroy.rb @@ -1,4 +1,4 @@ -RAILS_ENV.replace "generators" +require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators')) require "#{RAILS_ROOT}/config/environment" if ARGV.size == 0 diff --git a/railties/lib/commands/generate.rb b/railties/lib/commands/generate.rb index 5408e78157..32cabcab10 100755 --- a/railties/lib/commands/generate.rb +++ b/railties/lib/commands/generate.rb @@ -1,4 +1,4 @@ -RAILS_ENV.replace "generators" +require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators')) require "#{RAILS_ROOT}/config/environment" if ARGV.size == 0 diff --git a/railties/lib/commands/update.rb b/railties/lib/commands/update.rb index 5ce1068e1a..f3b3ad0775 100644 --- a/railties/lib/commands/update.rb +++ b/railties/lib/commands/update.rb @@ -1,4 +1,4 @@ -RAILS_ENV.replace "generators" +require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators')) require "#{RAILS_ROOT}/config/environment" if ARGV.size == 0 |