Skip to content

Commit 796a362

Browse files
GabrielSandovalstas
authored andcommitted
Fix example code on filtering and sorting section
1 parent 7a105a5 commit 796a362

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ grouping. To enable expressions along with filters, use the option flags:
282282
```ruby
283283
options = { sort_with_expressions: true }
284284
jsonapi_filter(User.all, allowed_fields, options) do |filtered|
285-
render jsonapi: result.group('id').to_a
285+
render jsonapi: filtered.result.group('id').to_a
286286
end
287287
```
288288

0 commit comments

Comments
 (0)