Skip to content

Commit

Permalink
Ensure script/generate finds generators from symlinked plugins. [#449
Browse files Browse the repository at this point in the history
…state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
dguettler authored and tarmo committed Aug 24, 2008
1 parent 4fa6615 commit 84ceff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails_generator/lookup.rb
Expand Up @@ -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")
Expand Down

0 comments on commit 84ceff6

Please sign in to comment.