Permalink
Browse files

Ensure script/generate finds generators from symlinked plugins. [#449

…state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent e53f5fe commit f90eb81c65d5841b591caf0f5e39ef774d02d06e @dguettler dguettler committed with lifo Jun 23, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails_generator/lookup.rb
View
2 railties/lib/rails_generator/lookup.rb
@@ -108,7 +108,7 @@ def use_component_sources!
sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators")
Rails.configuration.plugin_paths.each do |path|
relative_path = Pathname.new(File.expand_path(path)).relative_path_from(Pathname.new(::RAILS_ROOT))
- sources << PathSource.new(:"plugins (#{relative_path})", "#{path}/**/{,rails_}generators")
+ sources << PathSource.new(:"plugins (#{relative_path})", "#{path}/*/**/{,rails_}generators")
end
end
sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators")

0 comments on commit f90eb81

Please sign in to comment.