aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/commands/destroy/destroy_command.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/destroy/destroy_command.rb b/railties/lib/rails/commands/destroy/destroy_command.rb
index 794673851d..281732a936 100644
--- a/railties/lib/rails/commands/destroy/destroy_command.rb
+++ b/railties/lib/rails/commands/destroy/destroy_command.rb
@@ -5,6 +5,9 @@ module Rails
class DestroyCommand < Base # :nodoc:
no_commands do
def help
+ require_application_and_environment!
+ load_generators
+
Rails::Generators.help self.class.command_name
end
end