aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYohei Yasukawa <yasulab@gmail.com>2017-06-10 11:42:21 +0900
committerYohei Yasukawa <yasulab@gmail.com>2017-06-10 11:42:21 +0900
commit58de07f70def7b03e7941ecfe993980ca9c4acc7 (patch)
treea26b1df69c55149bcdfead259bd47977deacb014 /guides
parent3260c6e162727f5a5aaa0efe377a2c4561a8be33 (diff)
downloadrails-58de07f70def7b03e7941ecfe993980ca9c4acc7.tar.gz
rails-58de07f70def7b03e7941ecfe993980ca9c4acc7.tar.bz2
rails-58de07f70def7b03e7941ecfe993980ca9c4acc7.zip
[ci skip] Add backquote to :counter_cache option
Diffstat (limited to 'guides')
-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`.