Move repeated insert_pagination_headers method to api base class (#29606)
This commit is contained in:
@@ -28,10 +28,6 @@ class Api::V1::EndorsementsController < Api::BaseController
|
||||
current_account.endorsed_accounts.includes(:account_stat, :user).without_suspended
|
||||
end
|
||||
|
||||
def insert_pagination_headers
|
||||
set_pagination_headers(next_path, prev_path)
|
||||
end
|
||||
|
||||
def next_path
|
||||
return if unlimited?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user