Performance hurt. Having write_attribute mark dirty[attr] = true
would be great, but attributes may be modified in-place once they're
read, so we have to hash or copy them and look for changes.
A seductive alternative to is to treat attribute values as immutable
- freeze the value returned from read_attribute. Then we're on easy
street.
It's more than just dirty[attr] = true, as most rails apps will be
calling attributes= or update_attributes which will flag as dirty,
every attribute in the form, irrespective of whether or not the value
changes.
The whole thing is high risk, low reward. Sounds perfect for a plugin! ;)
--
Cheers
Koz
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core