aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman+no-recruiters@gmail.com>2017-06-09 22:03:06 -0500
committerGitHub <noreply@github.com>2017-06-09 22:03:06 -0500
commit57cfd45b167c99bd5737f14e3c3805dc38c668ce (patch)
treea26b1df69c55149bcdfead259bd47977deacb014 /guides/source
parent3260c6e162727f5a5aaa0efe377a2c4561a8be33 (diff)
parent58de07f70def7b03e7941ecfe993980ca9c4acc7 (diff)
downloadrails-57cfd45b167c99bd5737f14e3c3805dc38c668ce.tar.gz
rails-57cfd45b167c99bd5737f14e3c3805dc38c668ce.tar.bz2
rails-57cfd45b167c99bd5737f14e3c3805dc38c668ce.zip
Merge pull request #29403 from yasslab/add-backquote-to-counter-cache
[ci skip] Add backquote to :counter_cache option
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/association_basics.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index b0621be8c3..bead931529 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -960,7 +960,7 @@ class Author < ApplicationRecord
end
```
-NOTE: You only need to specify the :counter_cache option on the `belongs_to`
+NOTE: You only need to specify the `:counter_cache` option on the `belongs_to`
side of the association.
Counter cache columns are added to the containing model's list of read-only attributes through `attr_readonly`.