File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def find
100100 end
101101
102102 if JSONAPI . configuration . top_level_links_include_pagination && paginator
103- page_options [ :pagination_params ] = paginator . links_page_params ( page_options )
103+ page_options [ :pagination_params ] = paginator . links_page_params ( page_options . merge ( fetched_resources : resource_records ) )
104104 end
105105
106106 return JSONAPI ::ResourcesOperationResult . new ( :ok , resource_records , page_options )
@@ -210,7 +210,7 @@ def show_related_resources
210210 pagination_params = if paginator && JSONAPI . configuration . top_level_links_include_pagination
211211 page_options = { }
212212 page_options [ :record_count ] = record_count if paginator . class . requires_record_count
213- paginator . links_page_params ( page_options )
213+ paginator . links_page_params ( page_options . merge ( fetched_resources : related_resources ) )
214214 else
215215 { }
216216 end
You can’t perform that action at this time.
0 commit comments