We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc89e04 commit e8ad5a2Copy full SHA for e8ad5a2
1 file changed
lib/jsonapi/processor.rb
@@ -96,7 +96,7 @@ def find
96
end
97
98
if (JSONAPI.configuration.top_level_meta_include_page_count && page_options[:record_count])
99
- 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
100
101
102
if JSONAPI.configuration.top_level_links_include_pagination && paginator
0 commit comments