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
isfalse
by default.๐ #1149 Fixed metadata setting on
belongs_to
relations.๐ #1145 Metadata inverse should return
nil
ifinverse_of
was set asnil
.#1139 Enumerable targets now quack like arrays.
#1136 Setting
belongs_to
parent tonil
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.