logandk/mongoid_denormalize — pull request #2 by hubsmoke (2011-10-23 22:35:41+00:00)
Title: New mongoid fixes 

This fixes some issues for the latest Mongoid version (2.3.x)

Notably, this removes support for denormalization to embedded fields via a relation. Direct access to these fields via a relation is not supported by Mongoid.

Another notable change is that Arrays fields are now supported for denormalization. Previously, this would cause an error (Hash with odd number of something). This is now fixed and tests are added using an Array to store a User's location and denormalizing that location into Posts.

This also now passes all tests in the original spec + new tests for Array types.