#376 invalid

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:


#ignore the incorrect #update_attributes call:


Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 16th, 2008 @ 03:09 AM

    • State changed from “new” to “open”
    • Assigned user changed from “Sam Smoot” to “Dan Kubb (dkubb)”

    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 (dkubb)

    Dan Kubb (dkubb) 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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

People watching this ticket