diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-03-09 20:27:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 20:27:39 +0100 |
commit | 9f9e57339bb88fcf5f8e47a048d8201b97cd5f53 (patch) | |
tree | 5c2f2d9ffcbdfd8cfe6e243e04391b10df003343 /railties/lib/rails/commands/generate | |
parent | b16dcc872bb3c094cf1f1d890bdd302593acbbe8 (diff) | |
parent | 54ee15a203d7463534c2188141c6fb0090c9dc44 (diff) | |
download | rails-9f9e57339bb88fcf5f8e47a048d8201b97cd5f53.tar.gz rails-9f9e57339bb88fcf5f8e47a048d8201b97cd5f53.tar.bz2 rails-9f9e57339bb88fcf5f8e47a048d8201b97cd5f53.zip |
Merge pull request #28182 from y-yagi/show_correct_rails_commands
Show correct commands in help
Diffstat (limited to 'railties/lib/rails/commands/generate')
-rw-r--r-- | railties/lib/rails/commands/generate/generate_command.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/generate/generate_command.rb b/railties/lib/rails/commands/generate/generate_command.rb index 2718b453a8..9dd7ad1012 100644 --- a/railties/lib/rails/commands/generate/generate_command.rb +++ b/railties/lib/rails/commands/generate/generate_command.rb @@ -3,11 +3,13 @@ require "rails/generators" module Rails module Command class GenerateCommand < Base # :nodoc: - def help - require_application_and_environment! - load_generators + no_commands do + def help + require_application_and_environment! + load_generators - Rails::Generators.help self.class.command_name + Rails::Generators.help self.class.command_name + end end def perform(*) |