aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-13 18:18:08 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-13 18:18:08 +0200
commitf68e7a3987adf2cffe0e48263d117839c2028185 (patch)
tree2ac5f0da1bb2e11e48c6f68a2598d4761837fd20 /railties/lib/commands
parent21019304f07f9ba70ef0ec4434d96321cebc266c (diff)
downloadrails-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.rb2
-rwxr-xr-xrailties/lib/commands/generate.rb2
-rw-r--r--railties/lib/commands/update.rb2
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