So I am implementing cancancan into all my models so that both reads and access to each attribute in a model must be authorised
for write operations I can use before_save and before_create but I need something that works for reading data.
My plan is to write some code in ApplicationRecord that would then work for all models with the goal to prevent user from accessing any data they don't have specific privileges for.
While I know there are solutions at the controller level I need the extra security at the model level