From 47cba4cc40596e54e62a7ec76e787a35422da363 Mon Sep 17 00:00:00 2001 From: Ujjwal Thaakar Date: Tue, 22 Oct 2013 11:12:36 +0530 Subject: [PATCH] Use is_a? instead of inspect to cater to subclasses of Neography::Node --- lib/neography/index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neography/index.rb b/lib/neography/index.rb index ca50698..8817987 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.is_a?(Neography::Node) nodes = [] results = db.find_node_index(*args) return nil unless results