diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 23:52:34 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 23:52:34 +0000 |
commit | 25410d53cf0e645b853776539c963aedc30d49b1 (patch) | |
tree | 6ffe90f4313aef786db47fd55ee687e7a9672f1d /railties/lib/rails_generator/lookup.rb | |
parent | 7376da4a2cc10881d9fdc27d4b3da0af8b3ab45c (diff) | |
download | rails-25410d53cf0e645b853776539c963aedc30d49b1.tar.gz rails-25410d53cf0e645b853776539c963aedc30d49b1.tar.bz2 rails-25410d53cf0e645b853776539c963aedc30d49b1.zip |
Added that plugins can carry generators and that generator stub files can be created along with new plugins using script/generate plugin <name> --with-generator [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/lookup.rb')
-rw-r--r-- | railties/lib/rails_generator/lookup.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/lookup.rb b/railties/lib/rails_generator/lookup.rb index 6b40f94638..9351c4c7c1 100644 --- a/railties/lib/rails_generator/lookup.rb +++ b/railties/lib/rails_generator/lookup.rb @@ -99,6 +99,7 @@ module Rails def use_component_sources! reset_sources sources << PathSource.new(:app, "#{::RAILS_ROOT}/lib/generators") if defined? ::RAILS_ROOT + sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/**/generators") if defined? ::RAILS_ROOT sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators") sources << GemSource.new if Object.const_defined?(:Gem) sources << PathSource.new(:builtin, "#{File.dirname(__FILE__)}/generators/components") |