method

load_schema!

rails latest stable - Class: ActiveRecord::CounterCache::ClassMethods

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

load_schema!()
public

No documentation available.

# File activerecord/lib/active_record/counter_cache.rb, line 186
      def load_schema! # :nodoc:
        super

        association_names = _reflections.filter_map do |name, reflection|
          next unless reflection.belongs_to? && reflection.counter_cache_column

          name.to_sym
        end

        self.counter_cached_association_names |= association_names
      end