diff options
author | Yohei Yasukawa <yasulab@gmail.com> | 2017-06-10 11:42:21 +0900 |
---|---|---|
committer | Yohei Yasukawa <yasulab@gmail.com> | 2017-06-10 11:42:21 +0900 |
commit | 58de07f70def7b03e7941ecfe993980ca9c4acc7 (patch) | |
tree | a26b1df69c55149bcdfead259bd47977deacb014 /guides | |
parent | 3260c6e162727f5a5aaa0efe377a2c4561a8be33 (diff) | |
download | rails-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.md | 2 |
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`. |