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.0.0.alpha.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.1.2 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.1.1 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.1.0 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.14 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.13 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.12 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.11 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.10 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.9 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.8 lib/neo4j/active_node/labels/reloading.rb
neo4j-6.1.12 lib/neo4j/active_node/labels/reloading.rb
neo4j-6.0.9 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.7 lib/neo4j/active_node/labels/reloading.rb
neo4j-6.1.11 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.6 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.5 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.4 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.3 lib/neo4j/active_node/labels/reloading.rb
neo4j-7.0.2 lib/neo4j/active_node/labels/reloading.rb