1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Daniel 2021-05-09 08:05:47 -06:00 committed by GitHub
parent 8efcf9bf82
commit 599fb11bcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1847,7 +1847,7 @@ class Comment < ApplicationRecord
end
```
Class methods can also be added to concerns. If we want a count of public articles or comments to display on our main page, we might add a class method to Visible as follows:
Class methods can also be added to concerns. If we want to display a count of public articles or comments on our main page, we might add a class method to Visible as follows:
```ruby
module Visible