mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Do not show hidden namespaces in destroy commnad help
This commit is contained in:
parent
40ba03adaa
commit
9a0ad3f5ef
2 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,9 @@ module Rails
|
|||
class DestroyCommand < Base # :nodoc:
|
||||
no_commands do
|
||||
def help
|
||||
require_application_and_environment!
|
||||
load_generators
|
||||
|
||||
Rails::Generators.help self.class.command_name
|
||||
end
|
||||
end
|
||||
|
|
|
@ -189,6 +189,9 @@ module ApplicationTests
|
|||
FileUtils.cd(rails_root) do
|
||||
output = `bin/rails generate --help`
|
||||
assert_no_match "active_record:migration", output
|
||||
|
||||
output = `bin/rails destroy --help`
|
||||
assert_no_match "active_record:migration", output
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue