lib/neo4j/active_node/node_wrapper.rb in neo4j-9.2.2 vs lib/neo4j/active_node/node_wrapper.rb in neo4j-9.2.3
- old
+ new
@@ -34,10 +34,10 @@
CONSTANTS_FOR_LABELS_CACHE[label] || CONSTANTS_FOR_LABELS_CACHE[label] = constantized_label(label)
end
def constantized_label(label)
"#{association_model_namespace}::#{label}".constantize
- rescue NameError
+ rescue NameError, LoadError
nil
end
def populate_constants_for_labels_cache(model_class, labels)
labels.each do |label|