Permalink
Browse files

Fix definition of find_name

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1128 state:committed]
  • Loading branch information...
1 parent 2d644fd commit 0dea211f44d85e9c28963784286838bfa6c343f9 @al2o3cr al2o3cr committed with NZKoz Oct 8, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/vendor_gem_source_index.rb
@@ -63,8 +63,8 @@ def load_specification(gem_dir)
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)

0 comments on commit 0dea211

Please sign in to comment.