mongoid/mongoid — pull request #1419 by fwoeck (2011-11-09 16:42:38+00:00)
Title: unify identity maps for HM and HO relations, fix eager loading for first/last executed criteria

Hi Durran,

- 954b4d9 unifies the storage of has-many and has-one relations in the identity map, so objects are eventually just stored once. It also fixes a problem with first/last not using eager loading.

- 107e2bc assures that obj.reload will respect default_scopes with a fields selection

- b6a88ef returns a cursor when a block is ommitted on a criterion, so you can call u = User.where(...); u.next

The commits are fairly independent and could be certainly cherry picked easily.

Best regards,
Frank