I am using socialization gem and public_activity gem in a rails 4 app.
I have everything working pretty much how I want it, except I cannot figure out how to delete activity records once the item it refers to is deleted.
http://swatinakshtra.wordpress.com/2013/11/24/public_activity-gem/
This blog post mentions you can delete these with a before_destroy method in the controller of the object being deleted, but I dont have access to that controller since its part of the socializer gem.
What is the proper way to achieve this? I guess I'm looking for some kind of 'cascade on delete' option.