OneToMany::Proxy save raises ImmutableAssociationError with no @dirty_children
Reported by rubymaverick | June 12th, 2008 @ 04:41 PM
When saving a resource with OneToMany association objects in the object graph, OneToMany::Proxy#save will throw a ImmutableAssociationError even when there are no @dirty_children. See pastie's:
http://pastie.textmate.org/214026
#ignore the incorrect #update_attributes call:
Comments and changes to this ticket
-
Dan Kubb June 16th, 2008 @ 03:09 AM
- → State changed from new to open
- → Assigned user changed from Sam Smoot to Dan Kubb
Is this issue still causing you problems? Before seeing your ticket I did some refactoring on the OneToMany::Proxy to clean up how exceptions are thrown and when.
Can you give edge DM a try and see if this is still a problem for you?
Currently immutable exceptions will be thrown when trying to modify a one to many proxy returned from a "has n, :through" type call.
-
Dan Kubb June 23rd, 2008 @ 06:17 PM
- → State changed from open to invalid
More information was requested for this ticket 7 days ago. Marking invalid due to inactivity. No similar issues have been reported. If this is still a problem please reply and I will reopen this.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
