NullVoxPopuli / skinny_controllers

A pattern for allowing for easier testing of large projects' business logic
MIT License
88 stars 7 forks source link

Add support for third party policy gems #23

Open NullVoxPopuli opened 8 years ago

NullVoxPopuli commented 8 years ago

https://github.com/elabs/pundit https://github.com/nathanl/authority etc

Pundit looks super close to what I have, so maybe I could break out skinny_controller's policies to their own gem, and have some hooks for the other policy gems?

NullVoxPopuli commented 8 years ago

This should be configurable via an initializer config option (just like the existing configuration options)

For something like authority, where the methods have a different naming scheme, this should be picked up automatically with an option to be configured.