Mongoid v3.1.4 Release Notes
-
Resolved Issues
#3044 Ensure enumerable targets match arrays in case statements.
#3034
first_or_create
on criterion now properly passes the block to create instead of calling after the document was created.๐ #3021 Removed
mongoid.yml
warning from initializer, this is now handled by the session configuration options.#3018 Uniqueness validator now properly serializes values in its check. (Jerry Clinesmith)
๐ #3011 Fixed aliased field support for uniqueness validation. (Johnny Shields)
๐ #3008 Fixed subclasses not being able to inherit scopes properly when scope is added post class load. (Mike Dillon)
#2991
Document.timeless
now properly scopes to the instance and not thread.#2980 Dynamic fields now properly handle in place editing of hashes and arrays. (Matthew Widmann)
#2979
pluck
no longer modifies the context in place. (Brian Goff)๐ #2970 Fixed counter cache to properly use the name of the relation if available then the inverse class name second if not.
#2959 Nested attributes will now respect
autosave: false
if defined on the relation.๐ #2944 Fixed uniqueness validation for localized fields when case insensitive is true. (Vladimir Zhukov)