Artificial intelligent assistant

1:N:Mのネストしたincludeでeager_loadingする方法 Rails4.1 class Question < ActiveRecord::Base has_many :translations, class_name "QuestionTranslation" has_many :answers end class Answer < ActiveRecord::Base has_many :translations, class_name "AnswerTranslation" end Question.includes(:translations, {answers: :translations}) `AnswerTranslation``eager_loading` `AnswerTranslation``eager_loading`

`includes``eager_load`


Question.eager_load(:translations, {answers: :translations})


`includes`
`eager_load``preload`
`eager_load``eager_load`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 600038bd0e39e30555647058160931b6