Skip to content

Commit

Permalink
Merge pull request #112 from ujjwalt/patch-1
Browse files Browse the repository at this point in the history
Use <= instead of inspect to cater to subclasses of Neography::Node
  • Loading branch information
maxdemarzi committed Oct 22, 2013
2 parents c6485db + 5eb807a commit b1829dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neography/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module ClassMethods
def find(*args)
db = args[3] ? args.pop : Neography::Rest.new

if self.inspect == "Neography::Node"
if self <= Neography::Node
nodes = []
results = db.find_node_index(*args)
return nil unless results
Expand Down

0 comments on commit b1829dc

Please sign in to comment.