Friday, 6 September 2013

Role inheritance CanCan - how to

Role inheritance CanCan - how to

I am following this theory
https://github.com/ryanb/cancan/wiki/Separate-Role-Model , I have used
Role inheritance as the following
https://gist.github.com/Code-Vortex/e17a6c7c11ad910f6aba , how can I call
an ability in the view , so if the user have this ability he will use it

No comments:

Post a Comment