We're looking at the protector gem for attribute level security. I'd like to auto restrict all models to the current user by default so you have to explicitly unrestrict it instead of the other way around. So..
Article.find(3) # Is actually eq to Article.restrict!(current_user).find(3)
But finding it a little challenging to implement it without wrapping/proxying the model. Was wondering if anyone has done this or has an idea of how to implement that type of functionality.
From the protector documentation:
You need just to restrict the current
User
itself.