Currently, eager load listeners only check the associations loaded and ignore the specific objects. That means we can get false positives on empty queries, and touching an eager-loaded attribute can resolve the wrong eager load. This PR refactors eager load checks and expands test cases to handle situations that fail now.
Currently, eager load listeners only check the associations loaded and ignore the specific objects. That means we can get false positives on empty queries, and touching an eager-loaded attribute can resolve the wrong eager load. This PR refactors eager load checks and expands test cases to handle situations that fail now.