阅读背景:

在模型上为请求的其余部分设置范围

来源:互联网 

I'm wondering if there is a way to set a scope on a model class for the rest of a request? I.e. I want to scope down some results, but I want to do it without the main restful controller knowing (perhaps in a before_filter injected into the controller).I'm wondering if there is a way to set a scope




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

分享到: