Move pagination_params into API::BaseController (#28845)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user