aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2014-05-29 14:40:02 -0500
committerschneems <richard.schneeman@gmail.com>2014-05-29 14:40:02 -0500
commit1913f1ef90e44f0977e1278cfafd8131f9fa58a3 (patch)
tree4f8baf0629335fdb42a9b8bd0b4c794cb3985898 /railties/lib
parentd7d7211c5344d5af9968abbb70e84fec64858781 (diff)
downloadrails-1913f1ef90e44f0977e1278cfafd8131f9fa58a3.tar.gz
rails-1913f1ef90e44f0977e1278cfafd8131f9fa58a3.tar.bz2
rails-1913f1ef90e44f0977e1278cfafd8131f9fa58a3.zip
document generators hidden_namespaces
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators.rb5
1 files changed, 5 insertions, 0 deletions
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]