7.0.0
This major version of Mongoid has a number of significant refactors, bug fixes, and behavior corrections. Please refer to the list of changes in version 7.0.0.beta and the following list for a complete picture of the changes.
These are the behavior changes:
- Fixup the falsey logic of nested (@nolaneo)
- MONGOID-4477 Don't report destroyed count with unacknowledged writes
These are the bug fixes and API/feature additions:
- Drop support for MongoDB server version 2.4.0 / require at least server version 2.6.0.
- Require at least Ruby driver version 2.5.1
- remove warning: instance variable @__parent not initialized (@qbantek)
- MONGOID-4470 Add id_sort :none option to enumerable #first and #last
- MONGOID-4485 Remove Ruby 1.9 temporal fix removing Symbol:Size from Ruby's Symbol class (@ColinTheRobot)
- MONGOID-4487: Fix atomically to support empty updates (@gingerhendrix)
- Use old value of shar key when calculating
Mongoid::Shardableshard_key_selector
(@intale) - Fix typo in documentation for And.rb (@kattak)
- add support for using $not in $elemMatch (@loganyu)
- Ensure the persistence context is unset when invalid (@benknowles)
- fix cloning document with polymorphic embedded documents with multiple language field (@tomasc)
- Add support for .inc to contextual (@johnnyshields)
- Travis test improvements (@johnnyshields)
- MONGOID-4497 Covert type to String before looking up in attributes hash.
- Remove QueryCache#read_or_server_selector (@koraktor)
- MONGOID-4505 Fix typo in tutorial for default_scope
- MONGOID-4499 Replace uses of pushAll with push and each
- MONGOID-3362 Don't allow Relations::Marcros methods to be field names
- MONGOID-4503 Support passing array_filters to update methods
- MONGOID-4483 Demongoize attribute values when accessing via #read_attribute or #[]
- MONGOID-2882 Set base relation on has_many enumerable objects
- MONGOID-4508 Ensure that fields are evolved properly when chaining criterion
- Fix Mongoid::Errors::UnknownModel (@Fudoshiki)
- MONGOID-4506 Support sessions
- fix query date parser with ActiveSupport timezone (@infernalmaster)