method
id
rails latest stable - Class:
ActiveRecord::AttributeMethods::CompositePrimaryKey
id()public
Returns the primary key column’s value. If the primary key is composite, returns an array of the primary key column values.
id()Returns the primary key column’s value. If the primary key is composite, returns an array of the primary key column values.