Move repeated insert_pagination_headers method to api base class (#29606)
This commit is contained in:
1 parent
58ce0002cd
commit
b5115850bb
33 files changed
+4
-128
No files matched your search
@@ -61,10 +61,6 @@ class Api::V1::Admin::DomainAllowsController < Api::BaseController
|
||||
DomainAllow.all
|
||||
end
|
||||
|
||||
def insert_pagination_headers
|
||||
set_pagination_headers(next_path, prev_path)
|
||||
end
|
||||
|
||||
def next_path
|
||||
api_v1_admin_domain_allows_url(pagination_params(max_id: pagination_max_id)) if records_continue?
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user