2019-10-29 09:06:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Pagination
|
|
|
|
class Base
|
2020-01-10 15:07:47 +00:00
|
|
|
def paginate(relation)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def finalize(records)
|
|
|
|
# Optional: Called with the actual set of records
|
|
|
|
end
|
2019-10-29 09:06:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|