Mongoid v3.0.9 Release Notes
-
Resolved Issues
๐ #2463 Fixed the broken
rails g mongoid:config
from a fresh repo.#2456 The descendants cache is now reset when the document is inherited again. (Kostyantyn Stepanyuk)
#2453
Model#write_attribute
now properly works with aliased fields. (Campbell Allen)๐ #2444 Removed extra dirty methods creation call. (Kostyantyn Stepanyuk)
#2440/#2435 Pass mass assignment options down to children when setting via nested attributes or embedded documents.
๐ #2439 Fixed memory leak in threaded selection of returned fields. (Tim Olsen)
mongoid/moped#82 Aliased fields now work with
Criteria#distinct
.โก๏ธ #2423 Fixed embedded document's
update_all
to perform the correct $set when using off a criteria.#2414 Index definitions now respect aliased fields.
#2413 Enumerable targets now properly return enumerators when no blocks are provided. (Andrew Smith)
#2411 BigDecimal fields are properly stored as strings when mongoizing integers and floats.
๐ง #2409 Don't warn about missing mongoid.yml if configured programmatically.
โก๏ธ #2403 Return false on
update_all
of an embeds many with no documents.๐ #2401 Bring back the ability to merge a criteria with a hash.
#2399 Reject blank id values on has_many
Model#object_ids=
. (Tiago Rafael Godinho)#2393 Ensure
inverse_of
is respected when using polymorphic relations.#2388 Map/reduce properly uses
sort
instead oforderby
in the execution of the command. (Alex Tsibulya)#2386 Allow geo haystack and bits parameters in indexes. (Bradley Rees)
#2380
Model#becomes
now properly copies over dirty attributes.#2331 Don't double push child documents when extra saves are called in an after_create callback.