logandk/mongoid_denormalize — pull request #12 by icambron (2012-05-02 04:54:18+00:00)
Title: only push denormalize_to changes if the field is dirty

If I understand correctly, `denormalize_to` only gets used if the from side is modified. If you're denormalizing usernames into posts, then adding a post gets handled by `denormalize_from`. It's just `post.username = 'bob'` that requires the `to` side. So it seems to me that you can avoid doing a lot of extra saves on the child elements by only having `denormalize_to` do any work when the relevant fields have been updated. This pull requests does that.