I have added a small method for checking if an object can be destroyed by checking if its associations marked as dependent restrict are empty or not. Since it seems something common to do, I wanted to ask if you think it is worth adding it to ActiveRecord, in which case I can fork it and add the change (as well as tests and doc), as described in
The gist for the monkeypatch I am doing now in the app is
My apologies if this is not the appropriate channel for discussing this. If it is not, I would appreciate some advice regarding where to ask this question or how to proceed.
Thanks!