Commit 35ed838
committed
Fix show_related_resources to work with global config
problem:
When the paginator is :none and top_level_meta_include_page_count is true
The show_related_resources was crashing as the paginator is nil
solution:
Just fixing the immediate problem but the code still leaves page_count
as nil in the meta1 parent bf4b4cd commit 35ed838
File tree
2 files changed
+12
-1
lines changed- lib/jsonapi
- test/integration/requests
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
816 | 827 | | |
817 | 828 | | |
818 | 829 | | |
| |||
0 commit comments