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

Extended by:
ActiveSupport::Concern
Included in:
ActiveGraph::Node::Labels
Defined in:
lib/active_graph/node/labels/reloading.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

MODELS_TO_RELOAD =
[]

Class Method Summary collapse

Class Method Details

.reload_models!Object


7
8
9
10
# File 'lib/active_graph/node/labels/reloading.rb', line 7

def self.reload_models!
  MODELS_TO_RELOAD.each(&:constantize)
  MODELS_TO_RELOAD.clear
end