![]() |
1
4
它不起作用,因为“in-hand”方法有一个返回到数据库的查询。 由于选项的逆,工作代码知道如何使用已经在内存中的对象。 http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html |
![]() |
2
7
我已经找到了一个解决方法,如果(我是)你愿意放弃Arel授予的SQL优化,只需要用Ruby就可以了。
|
![]() |
Stilian · 存储库设置中没有Github页面部分 2 年前 |
![]() |
Kellen · 查看$卷展栏功能列表 2 年前 |
![]() |
Akshit Thakur Ak · 我怎样才能把铁轨停下来? 2 年前 |
![]() |
johncssjs · 将数组转换为每个元素的嵌套哈希 2 年前 |
![]() |
solidsnake99 · Rails db:如何绕过验证 2 年前 |