lib/neo4j/active_node/node_wrapper.rb in neo4j-3.0.0.alpha.11 vs lib/neo4j/active_node/node_wrapper.rb in neo4j-3.0.0.rc.2
- old
+ new
@@ -2,9 +2,10 @@
module Wrapper
# this is a plugin in the neo4j-core so that the Ruby wrapper will be wrapped around the Neo4j::Node objects
def wrapper
most_concrete_class = sorted_wrapper_classes
+ return self unless most_concrete_class
wrapped_node = most_concrete_class.new
wrapped_node.init_on_load(self, self.props)
wrapped_node
end