rails/rails — pull request #15163 by aditya-kapoor (2014-05-17 22:42:43+00:00)
Title: Correct ActiveModel::Conversion#to_key implementation

The ActiveModel::Conversion#to_key should first check for the primary_key defined on the class of the object before opting for the hard-coded :id attribute.