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

Embedded docs deleted immediately on re-assing

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.6
    • Affects Version/s: None
    • Component/s: None

      Problem as described in the gist.

      In particular, if during the life of the embedding object, an instance of the embeded class is assigned that was previously assigned, the embedding is immediately cleared in the database, with the ruby-side object being frozen.

      Tested on:

      • ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
      • mongoid 3.0.5

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

              Created:
              Updated:
              Resolved: