From 9634ae87bc46ea84a80704c6589685cee0d22546 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Tue, 30 Jan 2018 17:19:52 -0200 Subject: [PATCH] doc: fix method call attribute --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f2bb8b5..69fe9dd 100644 --- a/README.md +++ b/README.md @@ -194,8 +194,8 @@ In this situation you should scope the vote of article with some category: **rate** ```ruby -author.rate resource, 3, scopeable: category_1 -author.rate resource, 5, scopeable: category_2 +author.rate resource, 3, scope: category_1 +author.rate resource, 5, scope: category_2 ``` Now `resource` has a rating for `category_1` and another one for `category_2`. @@ -259,8 +259,8 @@ author = Author.last resource = Article.last author.rate resource, 1 -author.rate resource, 3, scopeable: category_1 -author.rate resource, 5, scopeable: category_2 +author.rate resource, 3, scope: category_1 +author.rate resource, 5, scope: category_2 author.rating_records # { average: 1, estimate: 1, scopeable: nil , sum: 1, total: 1 },