mongoid/mongoid — pull request #1765 by i0rek (2012-02-27 13:56:12+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.