Associations Are Query Interfaces, Not Object Properties
A loaded Active Record association target answers one question, not every future association-shaped call. This RailsRevelry article explains association readers, CollectionProxy, loaded targets, scoped queries, count/existence methods, strict loading, and the debugging question: loaded for which question?
URL:
https://railsrevelry.substack.com/p/associations-are-query-interfaces
Post a comment