diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2014-06-01 11:46:37 +0000 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2014-06-01 11:46:37 +0000 |
commit | 4ae90a7dd8f9857f5d8c90c0135dd873f90e6957 (patch) | |
tree | 59af5d115cf2cafa7ad401ed288fee5c363e4612 /railties | |
parent | 26c38fe022227536489482cd07de623554546b21 (diff) | |
parent | 1913f1ef90e44f0977e1278cfafd8131f9fa58a3 (diff) | |
download | rails-4ae90a7dd8f9857f5d8c90c0135dd873f90e6957.tar.gz rails-4ae90a7dd8f9857f5d8c90c0135dd873f90e6957.tar.bz2 rails-4ae90a7dd8f9857f5d8c90c0135dd873f90e6957.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index 04ce38f841..2a0148fe9d 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -161,6 +161,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] |