I created an online survey tool with Rails (3.2.8). Answers and responses are saved in distinct objects (more than 15 different models in fact) I use devise as a user management system.
After all interviews are finished, admins can modify user responses while they validate the content of each users' interviews. I would like that an attribute called "admin_modified" be set to true whenever an admin validates or modify a response.
I know in MVC I should not get access to the user attributes while in model, but how can I set this attribute to true only when the logged user is an admin without modifying each places where there is a save/create/update_attributes command for 15 different models?
Is there an easy and correct way to do this?
Thanks!