lib/neo4j/active_node/node_wrapper.rb in neo4j-3.0.3 vs lib/neo4j/active_node/node_wrapper.rb in neo4j-3.0.4

- old
+ new

@@ -1,6 +1,7 @@ class Neo4j::Node + # The wrapping process is what transforms a raw CypherNode or EmbeddedNode from Neo4j::Core into a healthy ActiveNode (or ActiveRel) object. 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 self.props.symbolize_keys! @@ -21,9 +22,10 @@ # do this only once checked_labels_set.add(label_name) end end + # Makes the determination of whether to use <tt>_classname</tt> (or whatever is defined by config) or the node's labels. def sorted_wrapper_classes if self.props.is_a?(Hash) && self.props.has_key?(Neo4j::Config.class_name_property) self.props[Neo4j::Config.class_name_property].constantize else wrappers = _class_wrappers