summaryrefslogtreecommitdiff
path: root/lib/gitlab/pagination/base.rb
blob: a8a3397eba2a87e98a21406ebdddb3526609c65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Gitlab
  module Pagination
    class Base
      def paginate(relation)
        raise NotImplementedError
      end

      def finalize(records)
        # Optional: Called with the actual set of records
      end
    end
  end
end