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

Reloading parents document when you insert and update embeds

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:
      None

      Description

      This commit add 2 things

      1) When you add or update some embedded document you have all attributes of parent document updated. Before there are no change waiting the reload of parent document

      2) When you update an embed document, the relation between parent and this documents are reload. Now if you have some default_scope in your embed association, it's recalculate.

      I hope this implementation is not too bad. Can be little refactor I suppose.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: