Skip to content

Commit 1913f1e

Browse files
committed
document generators hidden_namespaces
1 parent d7d7211 commit 1913f1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

railties/lib/rails/generators.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ def self.invoke(namespace, args=ARGV, config={})
160160
end
161161
end
162162

163+
# Returns an array of generator namespaces that are hidden.
164+
# Generator namespaces may be hidden for a variety of reasons.
165+
# Some are aliased such as "rails:migration" and can be
166+
# invoked with the shorter "migration", others are private to other generators
167+
# such as "css:scaffold".
163168
def self.hidden_namespaces
164169
@hidden_namespaces ||= begin
165170
orm = options[:rails][:orm]

0 commit comments

Comments
 (0)