Sha256: 433e503a7d30a6432fd6b2a9d9177f67e7ec937286b0bbdb48ac11144cf00003

Contents?: true

Size: 493 Bytes

Versions: 176

Compression:

Stored size: 493 Bytes

Contents

module Neo4j::ActiveNode::Labels
  module Reloading
    extend ActiveSupport::Concern

    MODELS_TO_RELOAD = []

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

    module ClassMethods
      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
    end
  end
end

Version data entries

176 entries across 176 versions & 3 rubygems

Version Path
neo4j-9.6.2 lib/neo4j/active_node/labels/reloading.rb
activegraph-10.0.0.pre.alpha.11 lib/neo4j/active_node/labels/reloading.rb
activegraph-10.0.0.pre.alpha.10 lib/neo4j/active_node/labels/reloading.rb
activegraph-10.0.0.pre.alpha.9 lib/neo4j/active_node/labels/reloading.rb
activegraph-10.0.0.pre.alpha.8 lib/neo4j/active_node/labels/reloading.rb
activegraph-10.0.0.pre.alpha.7 lib/neo4j/active_node/labels/reloading.rb
activegraph-10.0.0.pre.alpha.6 lib/neo4j/active_node/labels/reloading.rb
neo4j-10.0.0.pre.alpha.5 lib/neo4j/active_node/labels/reloading.rb
neo4j-10.0.0.pre.alpha.4 lib/neo4j/active_node/labels/reloading.rb
neo4j-10.0.0.pre.alpha.3 lib/neo4j/active_node/labels/reloading.rb
neo4j-10.0.0.pre.alpha.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-10.0.0.pre.alpha.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.6.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.6.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.5.3 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.5.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.5.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.4.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.3.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.2.4 lib/neo4j/active_node/labels/reloading.rb