aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/destroy.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-08 12:55:50 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-08 12:55:50 +0200
commit09c288f0c5b5f9da4473bb321cccb766d9f59d7e (patch)
treed12cb86acdbe32ca2c6c9971ff9921360a02b1ef /railties/lib/commands/destroy.rb
parentc9ea21717eefb9e9b49891c519cc4d121ef7bb74 (diff)
downloadrails-09c288f0c5b5f9da4473bb321cccb766d9f59d7e.tar.gz
rails-09c288f0c5b5f9da4473bb321cccb766d9f59d7e.tar.bz2
rails-09c288f0c5b5f9da4473bb321cccb766d9f59d7e.zip
Add the new generators environment and update commands.
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 075fe5bb12..6e740bb754 100644
--- a/railties/lib/commands/destroy.rb
+++ b/railties/lib/commands/destroy.rb
@@ -1,5 +1,5 @@
+RAILS_ENV.replace "generators"
require "#{RAILS_ROOT}/config/environment"
-require 'generators'
if ARGV.size == 0
Rails::Generators.help