#4 ✓resolved
Sam Smoot

Associations are only marked as dirty if they contain dirty objects

Reported by Sam Smoot | October 4th, 2007 @ 02:51 PM

Right now a "clean" object won't trigger Association#dirty?. ie:

zoo = Zoo.first
zoo.exhibits << Exhibit.first

Since nothing was modified on the exhibit in this example, and Exhibit#dirty? will return false, then Association#dirty? will return false. Which is incorrect. Whenever an object is added or removed from an association it should be marked as dirty.

Comments and changes to this ticket

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


Referenced by