mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Help command for visible commands should be hidden
``` $ rails --help > tmp/before $ bundle update rails ... $ rails --help > tmp/after $ diff -u tmp/before tmp/after --- tmp/before 2019-04-19 00:12:08.000000000 -0700 +++ tmp/after 2019-04-19 00:14:55.000000000 -0700 @@ -52,7 +52,6 @@ db:version destroy dev:cache - dev:help encrypted:edit encrypted:show initializers ```
This commit is contained in:
parent
16dae7684e
commit
1cd88288d5
1 changed files with 4 additions and 2 deletions
|
@ -5,9 +5,11 @@ require "rails/dev_caching"
|
||||||
module Rails
|
module Rails
|
||||||
module Command
|
module Command
|
||||||
class DevCommand < Base # :nodoc:
|
class DevCommand < Base # :nodoc:
|
||||||
|
no_commands do
|
||||||
def help
|
def help
|
||||||
say "rails dev:cache # Toggle development mode caching on/off."
|
say "rails dev:cache # Toggle development mode caching on/off."
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def cache
|
def cache
|
||||||
Rails::DevCaching.enable_by_file
|
Rails::DevCaching.enable_by_file
|
||||||
|
|
Loading…
Reference in a new issue