阅读背景:

Rails将无法正确评估条件的before_save回调

来源:互联网 

I have my app schema defaulting the User.role attribute to "new". My goal for my before_save callback is for the User model to change the user.role attribute to "admin" if the user being created is the first one, otherwise it leaves it alone.I have my app schema defaulting the User.role a




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

分享到: