mongoid/mongoid — pull request #2825 by joelvh (2013-02-14 06:28:12+00:00)
Title: Recursive mongoization

Mongoization does not work for values within arrays. This patch adds recursion into arrays.

I discovered this with the Money class, which now properly serializes using this example:

Product.new(:data => {:price => Money.new(1099), :variants => [{:sku => "1234", :sale_price => Money.new(899)}]}).as_document