Commit 0d7be6d6 by liyijie

feat: paginate use total_entries instead of count

parent 5906fae0
json.current_page @<%= resource_plural %>.current_page json.current_page @<%= resource_plural %>.current_page
json.total_pages @<%= resource_plural %>.total_pages json.total_pages @<%= resource_plural %>.total_pages
json.total_count @<%= resource_plural %>.count json.total_count @<%= resource_plural %>.total_entries
json.statistics @statistics if @statistics.present? json.statistics @statistics if @statistics.present?
json.records @<%= resource_plural %>, partial: 'simple', as: :<%= resource_singular %> json.records @<%= resource_plural %>, partial: 'simple', as: :<%= resource_singular %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment