diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-26 21:05:13 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-03-03 08:18:51 +0900 |
commit | 54ee15a203d7463534c2188141c6fb0090c9dc44 (patch) | |
tree | 2eaf300d2a50704d436dbfd10d22e0630f0f30f6 /railties/lib/rails/commands/secrets | |
parent | 2d84a6bc74fbe9d9b97bf7d63ec6f27418d9c3a6 (diff) | |
download | rails-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/secrets')
-rw-r--r-- | railties/lib/rails/commands/secrets/secrets_command.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/secrets/secrets_command.rb b/railties/lib/rails/commands/secrets/secrets_command.rb index 3ba8c0c85b..c6d9ec0008 100644 --- a/railties/lib/rails/commands/secrets/secrets_command.rb +++ b/railties/lib/rails/commands/secrets/secrets_command.rb @@ -4,10 +4,12 @@ require "rails/secrets" module Rails module Command class SecretsCommand < Rails::Command::Base # :nodoc: - def help - say "Usage:\n #{self.class.banner}" - say "" - say self.class.desc + no_commands do + def help + say "Usage:\n #{self.class.banner}" + say "" + say self.class.desc + end end def setup |