enspiral/loomio — pull request #227 by jonlemmon (2012-06-18 20:48:50+00:00)
Title: Refactor/permissions

I've done a pretty big refactoring of all the permissions in the app. I ripped out most of the `model.can_be_*?` methods and put them into cancan. I also removed all of the permissions testing from the controller specs and moved them into `ability_spec.rb`.

Overall the app is 100 lines shorter and there is a lot more rigorous testing on the permissions now.