summaryrefslogtreecommitdiff
path: root/lib/api/helpers/pagination.rb
blob: a6ae9a87f98a8b8dcaaed57dc3b744449c63b242 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module API
  module Helpers
    module Pagination
      def paginate(relation)
        Gitlab::Pagination::OffsetPagination.new(self).paginate(relation)
      end
    end
  end
end