method

set_strict_loading

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

Method not available on this version

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

set_strict_loading(record)
public

No documentation available.

# File activerecord/lib/active_record/associations/association.rb, line 123
      def set_strict_loading(record)
        if owner.strict_loading_n_plus_one_only? && reflection.macro == :has_many
          record.strict_loading!
        else
          record.strict_loading!(false, mode: owner.strict_loading_mode)
        end
      end