aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/destroy.rb
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/destroy.rb
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/destroy.rb')
-rw-r--r--railties/lib/commands/destroy.rb2
1 files changed, 1 insertions, 1 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