Rails Eager Loading on All Finds

前端 未结 2 1146
太阳男子
太阳男子 2020-12-13 04:44

OK, I\'ve been playing around with some of the eager loading things, and have 2 models something like:

Class Recipe < ActiveRecord::Base
    belongs_to :c         


        
2条回答
  •  醉梦人生
    2020-12-13 05:27

    You should be able to do this with named scopes, but I understand that there were a number of possible bugs with that, hopefully they are all fixed now.

提交回复
热议问题