1
0
Fork 0
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:
yuuji.yaginuma 2017-03-27 08:29:20 +09:00
parent 40ba03adaa
commit 9a0ad3f5ef
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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