From 1913f1ef90e44f0977e1278cfafd8131f9fa58a3 Mon Sep 17 00:00:00 2001 From: schneems Date: Thu, 29 May 2014 14:40:02 -0500 Subject: [PATCH] document generators hidden_namespaces --- railties/lib/rails/generators.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index dce734b54e..7ff580d449 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -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]