Module: Neo4j::NodeWrapping

Defined in:
lib/neo4j/active_node/node_wrapper.rb

Constant Summary collapse

CONSTANTS_FOR_LABELS_CACHE =

Only load classes once for performance

{}

Class Method Summary collapse

Class Method Details

.class_to_wrap(labels) ⇒ Object



20
21
22
23
24
25
# File 'lib/neo4j/active_node/node_wrapper.rb', line 20

def class_to_wrap(labels)
  load_classes_from_labels(labels)
  Neo4j::ActiveNode::Labels.model_for_labels(labels).tap do |model_class|
    populate_constants_for_labels_cache(model_class, labels)
  end
end