Dirty objects and overload attribute read/write methods

Hi,

I'm trying to use dirty fields but keep running into trouble with attributes that I've overloaded. It looks like the dirty.rb module uses read_attribute and to figure out the old value. Unfortunately this is before my overloaded methods have done their work. Therefore, the "old" value is not yet transformed and, hence, incorrect. I've pasted a little example here:

http://pastie.org/464578

Can anyone help me with a solution?

Thanks, Bob