Mongoid v3.0.18 Release Notes

  • Resolved Issues

    • #2707 Calling find_or_create_by or find_by_initialize_by off a relation with a chained criteria or scope now properly keeps the relations intact on the new or found document.

    • 🚚 #2699 Resetting a field now removes the name from the changed attributes list. (Subhash Bhushan)

    • 👍 #2683 Aliased fields are now supported when executing atomic operations from criteria. (Arthur Neves)

    • #2678 Calling Criteria#sum with no matching documents returns 0 instead of nil.

    • #2671 Matchers now correctly handle symbol keys. (Jonathan Hyman)