mongoid/mongoid — pull request #1981 by shingara (2012-05-04 15:53:42+00:00)
Title: Reloading parents document when you insert and update embeds

This commit add 2 things

1) When you add or update some embedded document you have all attributes of parent document updated. Before there are no change waiting the reload of parent document

2) When you update an embed document, the relation between parent and this documents are reload. Now if you have some default_scope in your embed association, it's recalculate.

I hope this implementation is not too bad. Can be little refactor I suppose.