阅读背景:

为什么使用授权库而不是我的例子会更好?

来源:互联网 

I am working on adding authorizations to an app I am building and I have a question. I have added an :admin column to my User table and set it as a boolean. In my controller I have added this code:I am working on adding authorizations to an app




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: