RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in