Hegwin.Me
Thoughts grows up by feeding itself with its own words.
Home
Tools
WoW Battle Pet
Meow Etymons
About
Rails Authorization with Pundit
Rails权限验证工具Pundit
Ruby on Rails
Pundit
Authorization
Jul 16, 2014
After people started using Rails 4, `cancan` was criticized for its complexity and lack of compatibility fixes, and people turned to a new tool Pundit. `Pundit` is a pure ruby gem for permission verification. Basic idea: Pundit, for objects that need to be authorized, according to the user's actions, will go to the corresponding policy of this object to find...