Module: Neo4j::ActiveNode::Labels::Reloading::ClassMethods

Defined in:
lib/neo4j/active_node/labels/reloading.rb

Instance Method Summary collapse

Instance Method Details

#before_remove_constObject


13
14
15
16
17
18
# File 'lib/neo4j/active_node/labels/reloading.rb', line 13

def before_remove_const
  associations.each_value(&:queue_model_refresh!)
  MODELS_FOR_LABELS_CACHE.clear
  WRAPPED_CLASSES.each { |c| MODELS_TO_RELOAD << c.name }
  WRAPPED_CLASSES.clear
end