method

primary_key_values_present?

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::AttributeMethods::PrimaryKey
primary_key_values_present?() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 26
      def primary_key_values_present? # :nodoc:
        return id.all? if self.class.composite_primary_key?

        !!id
      end
Register or log in to add new notes.