1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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