Hey all. I'm pimping for a patch that my colleague, Andre Arko, submitted originally: http://rails.lighthouseapp.com/projects/8994/ticke... I extended it to work with has_one associations, too. We have a couple instances in our app where we need an association that isn't keyed off the default primary key of the model. This patch allows you to use a :primary_key option to specify which key in the model should be used for the association. Cheers, -b
on 2008-06-03 22:19
on 2008-06-04 04:35
This sounds like a good feature, but isn't "primary_key" a confusing choice of names for that option? What about "alternate_key"? -hume.