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

Undocument Model#set breakage in 7.4.0

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Persistence
    • None

      There appears to be an undocumented breakage in 7.4.0. Assuming a User model with an external_ids field of type Hash, and a user record with external_ids value of 

      { a: 1 }

      , running the following:

      user.set(external_ids: { b: 2 })
      

      < 7.4.0

      => #<User external_ids={ a: 1, b: 2 }>
      

       
      >= 7.4.0

      => #<User external_ids={ b: 2 }>
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            kieran@xpand.io Kieran Pilkington
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: