Mongoid v2.1.9 Release Notes

  • Resolved Issues

    • ๐Ÿ— #1159 Fixed build blocks not to cancel out each other when nested.

    • #1154 Don't delete many-to-many documents on empty array set.

    • #1153 Retain parent document reference in after callbacks.

    • #1151 Fix associated validation infinite loop on self referencing documents.

    • 0๏ธโƒฃ #1150 Validates associated on belongs_to is false by default.

    • ๐Ÿ“‡ #1149 Fixed metadata setting on belongs_to relations.

    • ๐Ÿ“‡ #1145 Metadata inverse should return nil if inverse_of was set as nil.

    • #1139 Enumerable targets now quack like arrays.

    • #1136 Setting belongs_to parent to nil no longer deletes the parent.

    • #1120 Don't call in_memory on relations if they don't respond to it.

    • 0๏ธโƒฃ #1075 Set self in default procs to the document instance.

    • #1072 Writing attributes for nested documents can take a hash or array of hashes.

    • #990 Embedded documents can use a single embedded_in with multiple parent definitions.