debian-mirror-gitlab/lib/gitlab/pagination/base.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
268 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
module Gitlab
module Pagination
class Base
2020-03-13 15:44:24 +05:30
def paginate(relation)
raise NotImplementedError
2019-12-26 22:10:19 +05:30
end
2020-03-13 15:44:24 +05:30
def finalize(records)
# Optional: Called with the actual set of records
2019-12-26 22:10:19 +05:30
end
end
end
end