This project is archived and is in readonly mode.
Not able to use block-setting of attributes via association
Reported by Trevor Turk | May 23rd, 2008 @ 10:06 PM
Perhaps this could be viewed as a feature request, but it seemed like a bug to me. On Rails Edge, you can't set attributes with a block if you do so through an association. Please refer to the attached patch with a failing test case. My apologies, but I'm just not familiar enough with the Rails internals to create a proper patch that would add the functionality.
Comments and changes to this ticket
-
Trevor Turk May 23rd, 2008 @ 11:24 PM
Awesome - thanks, Ryan!
I've tagged this ticket with the "patch" keyword, so hopefully it'll get picked up.
-
Repository May 24th, 2008 @ 07:35 AM
- State changed from new to resolved
(from [6cba97d2a449faf21aec9fe9d4434067e414226f]) Create through associations can now work with blocks.
Signed-off-by: Michael Koziarski
[#248 state:resolved]
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>