it's to its
Properly remove embedded docs in as_document.

In the case of a relation existing in the attributes hash and then
getting set to empty, this now allows the attributes to properly get
reset.

[ fix #2454 ]
Nullified documents can be re-added to a relation.

[ fix #2469 ]
Adding specs (passing) for #2462
Ensure update_all does not error if nothing to update

[ fix #2472 ]
Embedded paranoid document deleted scope fixed.

[ fix #2451 ]
Don't fail on embedded pagination out of range

When skip or limit criteria are provided to an embeds_many relation
criteria that is out of range of the documents, we should simply return
an empty array.

[ fix #2476 ]
Removing indexes always uses strong consistency. [ fix #2485 ]
Store find params in DocumentNotFound errors. [ fix #2482 ]
Handle batch state passing in M/R aggregations

Mongo batches reduce jobs in groups of 100 and passes the state along
via the first document each time in the reduce function. This was
causing the count in the aggregations to reset every 100 documents that
were passed through the reduce. The effect would throw off any
calculations for avg and count with result sets larger than 100 docs.

[ fix #2482 ]
Fix changelog for #2481
Fix versioning of localized fields.

[ fix #2483 ]
Dont need the pid anymore in the database_id
Detach 1-1 unloaded relations properly. (Kostyantyn Stepanyuk)

[ fix #2474 ]
Adding in test middleware for #2445
Support Rails streaming in middleware.

[ fix #2445 ]
Remove unnecessary merge in cascading children.

[ fix #2491 ]
All explicit atomic ops now support field aliases.

[ fix #2494 ]
Update changelog
[ WIP ] Delay removal to docs to post validation.

First part of solving #2367 although we still have broken other specs
now with the first part of the fix.