aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Guettler <daniel.guettler@gmail.com>2008-06-23 11:06:13 -0400
committerPratik Naik <pratiknaik@gmail.com>2008-07-12 17:51:48 +0100
commitf90eb81c65d5841b591caf0f5e39ef774d02d06e (patch)
treed0f63c6709b7c61d3b4b6a50bdf35a577504307a
parente53f5fe696d692f1985981c34bb311e898fe3c72 (diff)
downloadrails-f90eb81c65d5841b591caf0f5e39ef774d02d06e.tar.gz
rails-f90eb81c65d5841b591caf0f5e39ef774d02d06e.tar.bz2
rails-f90eb81c65d5841b591caf0f5e39ef774d02d06e.zip
Ensure script/generate finds generators from symlinked plugins. [#449 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
-rw-r--r--railties/lib/rails_generator/lookup.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/lookup.rb b/railties/lib/rails_generator/lookup.rb
index 1f28c39d55..0526d526ad 100644
--- a/railties/lib/rails_generator/lookup.rb
+++ b/railties/lib/rails_generator/lookup.rb
@@ -108,7 +108,7 @@ module Rails
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")