Role-based authorization in Rails(blog.chaps.io) |
Role-based authorization in Rails(blog.chaps.io) |
Pundit made the design decision to be as close to pure Ruby as possible, and therefore is extremely flexible (similar to the design philosophy of Strong Parameters). Access Granted seems like a step backwards (toward a DSL) from Pundit. So it would take a strong argument to show why Access Granted is preferable to Pundit.
I really wanted to keep CanCan's simplicity, but add roles while cleaning abilities/policies up.