We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ace6e5b + 48eaa02 commit 2c9ae68Copy full SHA for 2c9ae68
1 file changed
lib/jsonapi/processor.rb
@@ -93,7 +93,7 @@ def find
93
end
94
95
if (JSONAPI.configuration.top_level_meta_include_page_count && page_options[:record_count])
96
- page_options[:page_count] = paginator.calculate_page_count(page_options[:record_count])
+ page_options[:page_count] = paginator ? paginator.calculate_page_count(page_options[:record_count]) : 1
97
98
99
if JSONAPI.configuration.top_level_links_include_pagination && paginator
0 commit comments