mongoid/mongoid — pull request #1774 by i0rek (2012-02-29 09:09:00+00:00)
Title: Add :dependent => :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.