I am having using rails 3 and have an HABTM(has_and_belongs_to_many) between users <-> emails Also user have roles defined for users as subs, pubs which have a Model that references to itself for mapping.
I want to send some emails to trash/spam/etc for one single user. How can I achieve, as if I delete one email it'll be removed for every user having HABTM. I just want to show that email as trashed/spam etc. I have a wild thought of overriding the HABTM table by setting spam/trash flags/columns in the table, so that when a user marks spam/trash to an email. He'll be able to work Is there any way/convention to do that.