From 796a3624c8650803ccc387b99374fe2a3a61afde Mon Sep 17 00:00:00 2001 From: Gabriel Sandoval Date: Wed, 6 Mar 2024 21:54:10 +0800 Subject: [PATCH] Fix example code on filtering and sorting section --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a7b6fd..ef6b2dc 100644 --- a/README.md +++ b/README.md @@ -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 ```