diff --git a/lib/neography/index.rb b/lib/neography/index.rb index ca50698..337d7d4 100644 --- a/lib/neography/index.rb +++ b/lib/neography/index.rb @@ -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