-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
It could help prevent hard-to-track-down cases of accidental Mongoid misuse.
parent = ParentDoc.new
child = ChildDoc.new
parent.children << child
parent.children << child # should raise