aegis
aegis copied to clipboard
Complete authorization solution for Rails that supports roles and a RESTish, resource-style declaration of permission rules.
Pretty simple commit, making it easier to validate roles elsewhere in the app. Can't get tests running at the moment for Aegis, so wasn't able to check that the tests...
I find myself doing this 90% of the time: ``` ruby resources :model_name do reading do allow :everyone end writing do allow :user do object.id && object.user == user end...
It would be super cool if there was a way to get a list of all permissions. Because right now when you get a permission denied Exception somewhere it is...