File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def find
95
95
end
96
96
97
97
if JSONAPI . configuration . top_level_links_include_pagination && paginator
98
- page_options [ :pagination_params ] = paginator . links_page_params ( page_options )
98
+ page_options [ :pagination_params ] = paginator . links_page_params ( page_options . merge ( fetched_resources : resources ) )
99
99
end
100
100
101
101
return JSONAPI ::ResourcesOperationResult . new ( :ok , resources , page_options )
@@ -190,7 +190,7 @@ def show_related_resources
190
190
pagination_params = if paginator && JSONAPI . configuration . top_level_links_include_pagination
191
191
page_options = { }
192
192
page_options [ :record_count ] = record_count if paginator . class . requires_record_count
193
- paginator . links_page_params ( page_options )
193
+ paginator . links_page_params ( page_options . merge ( fetched_resources : related_resources ) )
194
194
else
195
195
{ }
196
196
end
You can’t perform that action at this time.
0 commit comments