method
to_key
rails latest stable - Class:
ActiveRecord::AttributeMethods::PrimaryKey
to_key()public
Returns this record’s primary key value wrapped in an array if one is available.
to_key()Returns this record’s primary key value wrapped in an array if one is available.