doc: update

main
Washington Botelho 2020-01-16 14:15:41 -03:00
parent f475583729
commit bff0655f37
No known key found for this signature in database
GPG Key ID: 5DE4F42A8F073617
1 changed files with 3 additions and 2 deletions

View File

@ -390,7 +390,7 @@ rating:
### Unscoped Rating
All rating values are grouped by the scope, but you can disable it and group all of them.
All rating values are grouped by its own scope, but you can disable it and group all of them together.
```ruby
rating unscoped_rating: true
@ -404,7 +404,8 @@ author.rate resource, 2, scope: scope
author.rate resource, 3
```
Now the `sum` will be `6` and the `total` will be `3` because all rating will be calculated into just one rating record ignoring the `scopeable` object. The rating record is always saved on the record with `scopeable` as `nil`.
Now the `sum` will be `6` and the `total` will be `3` because all rating will be calculated into just one rating record ignoring the `scopeable` object.
The rating record is *always* saved on the record with `scopeable` as `nil`.
### where