1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

document generators hidden_namespaces

This commit is contained in:
schneems 2014-05-29 14:40:02 -05:00
parent d7d7211c53
commit 1913f1ef90

View file

@ -160,6 +160,11 @@ module Rails
end
end
# 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", others are private to other generators
# such as "css:scaffold".
def self.hidden_namespaces
@hidden_namespaces ||= begin
orm = options[:rails][:orm]