Module: ActiveGraph::Node::Labels::Reloading::ClassMethods

Defined in:
lib/active_graph/node/labels/reloading.rb

Instance Method Summary collapse

Instance Method Details

#before_remove_constObject



13
14
15
16
17
18
# File 'lib/active_graph/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