Add existence predicates for relations. (Andy Morris). Part 1 of #1188.
Add autobuild option to 1-1 relations
Finish off autobuild functionality. (Andy Morris) Closes #1188.
Convert localized fields in any_of criterion. Fixes #1762
Raise proper error when attempting to version embedded docs. Closes #685
Update changelog
Don't allow autosave callbacks to be added more than once.
Adding nested attributes macros now enables autosave for relations. Closes #1606.
Cast #limit() and #skip() arguments as Integer

To avoid raising ArgumentError deep inside Mongo's driver:
`MyModel.limit("2").to_a` =>

mongo-1.5.2/lib/mongo/cursor.rb:272:in `>'
mongo-1.5.2/lib/mongo/cursor.rb:272:in `batch_size'
mongo-1.5.2/lib/mongo/cursor.rb:80:in `initialize'
mongo-1.5.2/lib/mongo/collection.rb:236:in `new'
mongo-1.5.2/lib/mongo/collection.rb:236:in `find'
mongoid-2.4.4/lib/mongoid/collections/master.rb:25:in `block in find'
mongoid-2.4.4/lib/mongoid/collections/retry.rb:29:in `retry_on_connection_failure'
mongoid-2.4.4/lib/mongoid/collections/master.rb:24:in `find'
mongoid-2.4.4/lib/mongoid/collection.rb:42:in `find'
mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:175:in `block in execute'
mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:478:in `selecting'
mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:169:in `execute'
mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:261:in `iterate'
mongoid-2.4.4/lib/mongoid/criteria.rb:145:in `block in each'
mongoid-2.4.4/lib/mongoid/criteria.rb:145:in `tap'
mongoid-2.4.4/lib/mongoid/criteria.rb:145:in `each'
Merge pull request #1772 from byroot/patch-1

Cast #limit() and #skip() arguments as Integer
Update changelog
Add DeleteRestriction error.
Add Mongoid::Relations::Cascading::Restrict.

Fixes #1354. This is only a simple implementation and it doesn't
consider embedded relations as pointed out here:
https://github.com/mongoid/mongoid/issues/1354#issuecomment-2887859.
Add more specs.
Make sure parent gets deleted.
Merge pull request #1774 from i0rek/restrict

Add :dependent => :restrict.
Fixing certain spec breakages with regards to generators
Update changelog and restrict error messages
Adding presence validation to a relation enables autosave for the relation. Fixes #1675.
Complete rewrite of Mongoid scoping:

- Criteria#as_conditions has been removed.
- Criteria#fuse has been removed.
- Criteria#merge now only takes an object that responds to #to_criteria.
- Named scopes and default scopes no longer accept hashes.
- Default scopes now work with lambdas. Fixes #797.
- Model.scoped and Criteria#scoped now accept options. Fixes #829.
- Model.unscoped now can take a block.
- The named_scope macro has been removed, only scope is valid now.