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:
parent
d7d7211c53
commit
1913f1ef90
1 changed files with 5 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue