doc: fix description

main
Washington Botelho 2019-11-27 13:00:11 -03:00
parent ffb5964567
commit 9967ebb2bc
No known key found for this signature in database
GPG Key ID: 5DE4F42A8F073617
1 changed files with 4 additions and 8 deletions

View File

@ -138,24 +138,20 @@ author.rated? resource
### rates
You can retrieve all rates received by some resource:
All rating received.
```ruby
resource = Article.last
resource.rates
Article.first.rates
```
It will return a collection of `Rate` object.
### rated
In the same way you can retrieve all rates that some author received:
All rating given.
```ruby
author = Author.last
author.rated
Author.first.rated
```
It will return a collection of `Rate` object.