aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/destroy.rb
diff options
context:
space:
mode:
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