aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/destroy/destroy_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/destroy/destroy_command.rb')
-rw-r--r--railties/lib/rails/commands/destroy/destroy_command.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/destroy/destroy_command.rb b/railties/lib/rails/commands/destroy/destroy_command.rb
index 5b552b2070..c802910b5d 100644
--- a/railties/lib/rails/commands/destroy/destroy_command.rb
+++ b/railties/lib/rails/commands/destroy/destroy_command.rb
@@ -3,8 +3,10 @@ require "rails/generators"
module Rails
module Command
class DestroyCommand < Base # :nodoc:
- def help
- Rails::Generators.help self.class.command_name
+ no_commands do
+ def help
+ Rails::Generators.help self.class.command_name
+ end
end
def perform(*)