Filed in lighthouse.

Normally, if you assign an attribute its own value, the attribute is
not considered dirty.
However, it is incorrectly considered dirty if there is another
legitimately dirty attribute that was assigned first.

e.g.,

Foo.all.destroy; f = Foo.create(:bar=>1,:baz=>2)
f.bar = 1
f.baz = -2

reports 1 dirty attr


Foo.all.destroy; f = Foo.create(:bar=>1,:baz=>2)
f.bar = -1
f.baz = 2

incorrectly reports 2 dirty attrs

-Gary

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to