阅读背景:

在ActiveRecord where子句中使用实例方法

来源:互联网 

I have an instance method that has logic I want to use in a query. My attempts have not worked. I'd rather not duplicate the logic inside is_thing when building my where clause. I have an instance method that has logic I want




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

分享到: