This project is archived and is in readonly mode.

#854 ✓resolved

has_one natural assignment to already associated record

Reported by qoobaa | August 18th, 2008 @ 08:47 PM | in 2.x

Example from the :

>> user = User.first
=> #<User id: 1>
>> = Email.find(
=> #<Email id: 1, user_id: 1>
>> user.reload
=> #<User id: 1>
=> nil

I've spent over two hours on debugging it in my code (I used callbacks to associate objects). It's really surprising - I think it's not the obvious and expected behaviour.

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>

People watching this ticket

Referenced by