Returns an array of generator namespaces that are hidden. Generator namespaces may be hidden for a
variety of reasons. Some are aliased such as “rails:migration” and can
be invoked with the shorter “migration”.
# File railties/lib/rails/generators.rb, line 130
def hidden_namespaces
@hidden_namespaces ||= begin
orm = options[:rails][:orm]
test = options[:rails][:test_framework]
template = options[:rails][:template_engine]
[
"rails",
"resource_route",
"#{orm}:migration",
"#{orm}:model",
"#{test}:controller",
"#{test}:helper",
"#{test}:integration",
"#{test}:system",
"#{test}:mailer",
"#{test}:model",
"#{test}:scaffold",
"#{test}:view",
"#{test}:job",
"#{template}:controller",
"#{template}:scaffold",
"#{template}:mailer",
"action_text:install",
"action_mailbox:install"
]
end
end