Merge pull request #29403 from yasslab/add-backquote-to-counter-cache
[ci skip] Add backquote to :counter_cache option
This commit is contained in:
commit
57cfd45b16
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue