Move pagination_max_id
and pagination_since_id
into api/base controller (#28844)
This commit is contained in:
parent
01b624c4a0
commit
9754967d5f
23 changed files with 52 additions and 132 deletions
|
@ -101,12 +101,8 @@ class Api::V1::Admin::ReportsController < Api::BaseController
|
|||
api_v1_admin_reports_url(pagination_params(min_id: pagination_since_id)) unless @reports.empty?
|
||||
end
|
||||
|
||||
def pagination_max_id
|
||||
@reports.last.id
|
||||
end
|
||||
|
||||
def pagination_since_id
|
||||
@reports.first.id
|
||||
def pagination_collection
|
||||
@reports
|
||||
end
|
||||
|
||||
def records_continue?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue