method
to_key
v3.0.9 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::PrimaryKey
to_key()public
Returns this record’s primary key value wrapped in an Array or nil if the record is a new_record?
to_key()Returns this record’s primary key value wrapped in an Array or nil if the record is a new_record?