Rails--n+1查询

listings = Listing.includes(:property).where(id: ids)

 

posted @ 2016-11-10 10:12  盖瑞  阅读(152)  评论(0)    收藏  举报