Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2825

Recursive mongoization

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.1.2
    • 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

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

              Created:
              Updated:
              Resolved: