I have a couple of ActiveRecord objects with associations marked as dependent: :destroy. When the user deletes one of those objects, I want to present him with a list of all objects that will be (recursively) removed. How do I get this list?
I found the affected_on_destroy gem here, but it’s not really finished and seems to be rails 2.2. Is there some more current gem or some feature in rails to do this?
I wrote a gem
affected_by_destroy, the source can be found here.