Move pagination_params
into API::BaseController
(#28845)
This commit is contained in:
parent
a0b525e50b
commit
85d9053b36
28 changed files with 9 additions and 125 deletions
|
@ -32,10 +32,6 @@ class Api::V1::Trends::StatusesController < Api::BaseController
|
|||
scope
|
||||
end
|
||||
|
||||
def pagination_params(core_params)
|
||||
params.slice(:limit).permit(:limit).merge(core_params)
|
||||
end
|
||||
|
||||
def next_path
|
||||
api_v1_trends_statuses_url pagination_params(offset: offset_param + limit_param(DEFAULT_STATUSES_LIMIT)) if records_continue?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue