Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base.rb « pagination « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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