Skip to content

Commit

Permalink
Fix example code on filtering and sorting section
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSandoval authored and stas committed Apr 8, 2024
1 parent 7a105a5 commit 796a362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ grouping. To enable expressions along with filters, use the option flags:
```ruby
options = { sort_with_expressions: true }
jsonapi_filter(User.all, allowed_fields, options) do |filtered|
render jsonapi: result.group('id').to_a
render jsonapi: filtered.result.group('id').to_a
end
```

Expand Down

0 comments on commit 796a362

Please sign in to comment.