Hey all. I'm pimping for a patch that my colleague, Andre Arko, submitted originally:
http://rails.lighthouseapp.com/projects/8994/tickets/292-add-has_many-primary_key-option 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
