Replies: 1 comment 2 replies
-
Looks like I found a way how to partly fix my problem.
I added |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some problem with chains of eager loading for custom associations.
One of my general association works well with chains of eager loading.
So I can do
Lesson.eager(students: :profile).all
it will make 3 SQL requests. Everything in this case works as expected.Or I can make something like
And this will do the same.
But with my custom association it doesn't want chain eager loading:
Lesson.eager(not_recorded_students: :profile).all
will ignore eager loading for profiles.I hope there is something that I am missing.
Beta Was this translation helpful? Give feedback.
All reactions