Skip to content

Commit

Permalink
document generators hidden_namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed May 29, 2014
1 parent d7d7211 commit 1913f1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions railties/lib/rails/generators.rb
Expand Up @@ -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]
Expand Down

0 comments on commit 1913f1e

Please sign in to comment.