Skip to content

Commit 12ff3ea

Browse files
committed
[ci skip] Fix a typo in the AR associations guide
1 parent 59566ca commit 12ff3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/association_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,7 @@ class Author < ApplicationRecord
31103110
end
31113111
```
31123112

3113-
By default, querying `@auth books.size` results in a database call to perform a
3113+
By default, querying `author.books.size` results in a database call to perform a
31143114
`COUNT(*)` query. To optimize this, you can add a counter cache to the
31153115
_belonging_ model (in this case, `Book`). This way, Rails can return the count
31163116
directly from the cache without querying the database.

0 commit comments

Comments
 (0)