Skip to content

Commit b3e07be

Browse files
Add devcontainer to hidden_namespaces
The devcontainer generator is primarily intended to be used with the devcontainer command, which infers the correct options based on the application configuration. So, let's hide the devcontainer namespace from the generate command. This doesn't actually prevent the generator from being used this way, but we don't want to advertise it, since the command will lead to a better experience for the typical user. Co-authored-by: Jon Roberts <[email protected]>
1 parent d369c19 commit b3e07be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

railties/lib/rails/generators.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module Generators
2323
autoload :NamedBase, "rails/generators/named_base"
2424
autoload :ResourceHelpers, "rails/generators/resource_helpers"
2525
autoload :TestCase, "rails/generators/test_case"
26-
autoload :Devcontainer, "rails/generators/devcontainer"
2726

2827
mattr_accessor :namespace
2928

@@ -152,7 +151,8 @@ def hidden_namespaces
152151
"#{template}:scaffold",
153152
"#{template}:mailer",
154153
"action_text:install",
155-
"action_mailbox:install"
154+
"action_mailbox:install",
155+
"devcontainer"
156156
]
157157
end
158158
end

0 commit comments

Comments
 (0)