Skip to content

Commit

Permalink
need another method for find_exact
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Jan 24, 2013
1 parent 8c95c28 commit 4884d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/neography/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def find(*args)

if self.inspect == "Neography::Node"
nodes = []
results = args.size > 1 ? db.find_node_index(*args) : db.get_node_index(*args)
results = db.find_node_index(*args)
return nil unless results
results.each do |r|
node = self.new(r)
Expand All @@ -37,7 +37,7 @@ def find(*args)
nodes.size > 1 ? nodes : nodes.first
else
rels = []
results = args.size > 1 ? db.find_relationship_index(*args) : db.get_relationship_index(*args)
results = db.find_relationship_index(*args)
return nil unless results
results.each do |r|
rel = self.new(r, db)
Expand Down

0 comments on commit 4884d9c

Please sign in to comment.