mongoid/mongoid — pull request #1960 by i0rek (2012-04-29 19:58:53+00:00)
Title: Simplify Document#<<. Round #2.

This is the second approach to refactor Document#<<. The first was here #1942.
I tried to be very verbose this time in order to avoid writing specs for things which are difficult to test. The benefits of the pull request are 2 branches and 1 loop are gone and thus its more readable by having the _same_ functionality.

I just cannot let go this one. Correct me and I promise I won't try another time :).