-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
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