Skip to content

Commit

Permalink
Check for subclasses of Neography::Node and not just an instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalt committed Oct 22, 2013
1 parent 47cba4c commit 5eb807a
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.is_a?(Neography::Node)
if self <= Neography::Node
nodes = []
results = db.find_node_index(*args)
return nil unless results
Expand Down

0 comments on commit 5eb807a

Please sign in to comment.