Permalink
Browse files

document generators hidden_namespaces

  • Loading branch information...
1 parent d7d7211 commit 1913f1ef90e44f0977e1278cfafd8131f9fa58a3 @schneems schneems committed May 29, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 railties/lib/rails/generators.rb
View
5 railties/lib/rails/generators.rb
@@ -160,6 +160,11 @@ def self.invoke(namespace, args=ARGV, config={})
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]

0 comments on commit 1913f1e

Please sign in to comment.