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 ### rates
You can retrieve all rates received by some resource: All rating received.
```ruby ```ruby
resource = Article.last Article.first.rates
resource.rates
``` ```
It will return a collection of `Rate` object. It will return a collection of `Rate` object.
### rated ### rated
In the same way you can retrieve all rates that some author received: All rating given.
```ruby ```ruby
author = Author.last Author.first.rated
author.rated
``` ```
It will return a collection of `Rate` object. It will return a collection of `Rate` object.