Recursive mongoization

XMLWordPrintableJSON

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

              Assignee:
              Durran Jordan
              Reporter:
              joelvh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: