Rails authorization plugin

来源:互联网 发布:微信数据精灵授权码 编辑:程序博客网 时间:2024/06/05 03:48

CanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the Ability class) and not duplicated across controllers, views, and database queries.

https://github.com/ryanb/cancan