What's the difference between “includes” and “preload” in an ActiveRecord query?

后端 未结 3 648
傲寒
傲寒 2020-12-13 03:49

I\'m struggling to find a comparison of includes() and preload() for ActiveRecord objects. Can anyone explain the difference ?

3条回答
  •  天命终不由人
    2020-12-13 04:50

    As apidoc said "This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here." So the difference is that includes just NOT deprecated.

提交回复
热议问题