Module: API::Helpers::Pagination

Included in:
API::Helpers
Defined in:
lib/api/helpers/pagination.rb

Instance Method Summary collapse

Instance Method Details

#paginate(relation) ⇒ Object


6
7
8
# File 'lib/api/helpers/pagination.rb', line 6

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