Piotr Solnica
Jul 22, 2017 · 1 min read

This has nothing to do with control. Notice that the behavior of these methods is hard to predict. I recently worked on a project where it was a policy to never-ever use includes due to its unpredictable behavior. Query logic behind associations in AR is not exposed as a 1st class API, the fact you have eager_load and includes only makes it confusing.

    Piotr Solnica

    Written by

    Literally 🏆 winning hacker, heavily involved with Ruby community. Solutions Architect at Theorem. Creator of @rom_rb Core Team @dry_rb.