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-8.3.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.0.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.3.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.0.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-9.0.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.3.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.2.5 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.2.4 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.2.3 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.2.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.2.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.5 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.4 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.3 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.0.rc.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.0.18 lib/neo4j/active_node/labels/reloading.rb
neo4j-8.1.0.rc.1 lib/neo4j/active_node/labels/reloading.rb