This project is archived and is in readonly mode.

#1633 ✓resolved
Roman Shterenzon

has_many with :primary_key option bug

Reported by Roman Shterenzon | December 25th, 2008 @ 07:15 PM | in 2.x

Creating new object through a has_many association which has a :primary_key option doesn't work as expected, as it always assigns the id of the owner instead of using the provided :primary_key option. Attached is the fix with the corresponding unit test.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by