diff options
author | Matt Jones <al2o3cr@gmail.com> | 2008-10-08 10:29:48 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-10-08 17:36:53 +0200 |
commit | 0dea211f44d85e9c28963784286838bfa6c343f9 (patch) | |
tree | ec5ce47a2c2663adbdfe2dd13c225d211cc2c77a /railties | |
parent | 2d644fd13658fc4084f8df122bc6878c0d18df22 (diff) | |
download | rails-0dea211f44d85e9c28963784286838bfa6c343f9.tar.gz rails-0dea211f44d85e9c28963784286838bfa6c343f9.tar.bz2 rails-0dea211f44d85e9c28963784286838bfa6c343f9.zip |
Fix definition of find_name
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1128 state:committed]
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/vendor_gem_source_index.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/vendor_gem_source_index.rb b/railties/lib/rails/vendor_gem_source_index.rb index c8701101e2..e188f07895 100644 --- a/railties/lib/rails/vendor_gem_source_index.rb +++ b/railties/lib/rails/vendor_gem_source_index.rb @@ -63,8 +63,8 @@ module Rails YAML.load_file(spec_file) if File.exist?(spec_file) end - def find_name(gem_name, version_requirement = Gem::Requirement.default) - search(/^#{gem_name}$/, version_requirement) + def find_name(*args) + @installed_source_index.find_name(*args) + @vendor_source_index.find_name(*args) end def search(*args) |