I have a model Person that has a Bag that has Content.
Person has Content as well.
A Bag cannot be destroyed if it is not empty.
has_many :bags, :dependent => :destroy # A
has_many :contents, :dependent => :destroy # B
has_many :contents, :dependent => :destroy # C
If I destroy a Person with a non empty Bag, I get an error (correct).
By swapping A and B the error disappears.
(First destroy all Content => all Bags are empy)
This is what I wanted, but I could not find this documented, so I don’t
know if I can rely on this
Do you know anything about this?