From 9967ebb2bc1e606a673c1c5983c1d8ad1d613a2a Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Wed, 27 Nov 2019 13:00:11 -0300 Subject: [PATCH] doc: fix description --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index eb4b623..40326b4 100644 --- a/README.md +++ b/README.md @@ -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.