Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Rails 应用程序中使用 cancancan 获得 current_user 的所有功能?我看过这个话题https://github.com/CanCanCommunity/cancancan/pull/221,但谁知道会不会合并。
现在已经合并了,所以我们可以使用 permission[:can] 或 permission[:can_not]