method

run

rails latest stable - Class: ActiveRecord::Associations::Preloader::Association

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

run()
public

No documentation available.

# File activerecord/lib/active_record/associations/preloader/association.rb, line 118
        def run
          return self if run?
          @run = true

          records = records_by_owner

          owners.each do |owner|
            associate_records_to_owner(owner, records[owner] || [])
          end if @associate

          self
        end