doc: fix description
parent
ffb5964567
commit
9967ebb2bc
12
README.md
12
README.md
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue