Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 84ceff6921a0619de049301a1b8600b51a7e56f8 1 parent 4fa6615
@dguettler dguettler authored tarmo committed
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")
Please sign in to comment.
Something went wrong with that request. Please try again.