Merge pull request #29403 from yasslab/add-backquote-to-counter-cache

[ci skip] Add backquote to :counter_cache option
This commit is contained in:
Richard Schneeman 2017-06-09 22:03:06 -05:00 committed by GitHub
commit 57cfd45b16
1 changed files with 1 additions and 1 deletions

View File

@ -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`.