method

id?

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.

id?()
public

Queries the primary key column’s value. If the primary key is composite, all primary key column values must be queryable.