method

primary_key_values_present?

rails latest stable - Class: ActiveRecord::AttributeMethods::CompositePrimaryKey

Method not available on this version

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

primary_key_values_present?()
public

No documentation available.

# File activerecord/lib/active_record/attribute_methods/composite_primary_key.rb, line 16
      def primary_key_values_present? # :nodoc:
        if self.class.composite_primary_key?
          id.all?
        else
          super
        end
      end