Module: ActiveGraph::NodeWrapping

Defined in:
lib/active_graph/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/active_graph/node/node_wrapper.rb', line 20

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