aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/generate
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-02-26 21:05:13 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-03 08:18:51 +0900
commit54ee15a203d7463534c2188141c6fb0090c9dc44 (patch)
tree2eaf300d2a50704d436dbfd10d22e0630f0f30f6 /railties/lib/rails/commands/generate
parent2d84a6bc74fbe9d9b97bf7d63ec6f27418d9c3a6 (diff)
downloadrails-54ee15a203d7463534c2188141c6fb0090c9dc44.tar.gz
rails-54ee15a203d7463534c2188141c6fb0090c9dc44.tar.bz2
rails-54ee15a203d7463534c2188141c6fb0090c9dc44.zip
Show correct commands in help
Currently rails' help shows only namespace. However, the secrets command needs to specify command. Therefore, I fixed the command to display in help.
Diffstat (limited to 'railties/lib/rails/commands/generate')
-rw-r--r--railties/lib/rails/commands/generate/generate_command.rb10
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(*)