0
0
Fork 0

Move repeated insert_pagination_headers method to api base class (#29606)

This commit is contained in:
Matt Jankowski 2024-03-18 06:11:53 -04:00 committed by GitHub
parent 58ce0002cd
commit b5115850bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 4 additions and 128 deletions

View file

@ -58,10 +58,6 @@ class Api::V1::NotificationsController < Api::BaseController
@notifications.reject { |notification| notification.target_status.nil? }.map(&:target_status)
end
def insert_pagination_headers
set_pagination_headers(next_path, prev_path)
end
def next_path
api_v1_notifications_url pagination_params(max_id: pagination_max_id) unless @notifications.empty?
end