Michael de Silva's Blog

Software Engineer. Rubyist and Roboticist.

Michael de Silva's Blog

Software Engineer. Rubyist and Roboticist.

CanCan 2.0 now supporting namespaced resources

It's pretty awesome to have my work merged into a gem that I've been relying on for many of my Rails apps, personally and professionally, to handle the task of ACL — in-app authorisation.

This commit allows non-db backed controllers, a 'faux' resource if you will, to be authorised when namespaced.

Reading through Ryan's source was quite a learning experience for me — his coding style is extremely elegant and CanCan is a great example of how to author a well written and documented gem.

Many thanks to Ryan for his awesome work on Railscasts as well as Jeremy Friesen for his triage work on wading through the many CanCan pull-requests on Github.

comments powered by Disqus