mongoid/mongoid — pull request #1454 by rurounijones (2011-11-28 02:05:22+00:00)
Title: Updated after_build callback

This request is an updated version of #900

I cherry picked Ryans commit from ryantownsend/mongoid@f98488aefa2be8d0d510607b50b9a0bdf6901bff and updated it to work with latest master. I then added tests and code for references_one, references_many, embeds_one, embeds_many.

Hopefully this covers all the bases.