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

Array inplace changing.

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

      As of 3.1.4 if rainfall is an array field then:

      >> a.rainfall
      [319, 168, 164, 206, 278, 244, 249, 243, 307, 332, 370, 352]

      >> a.rainfall[1]=1000
      1000

      >> a.changes
      {}

      But 'changes' are changed if you modify a hash inplace. So it would be great if arrays are possible to be edited inplace too.

            Assignee:
            Unassigned Unassigned
            Reporter:
            exoth Yuriy Trofimenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: