13 lines
350 B
Ruby
13 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
module KeysetHelper
|
|
def keyset_paginate(paginator, without_first_and_last_pages: false)
|
|
page_params = params.to_unsafe_h
|
|
|
|
render('kaminari/gitlab/keyset_paginator', {
|
|
paginator: paginator,
|
|
without_first_and_last_pages: without_first_and_last_pages,
|
|
page_params: page_params
|
|
})
|
|
end
|
|
end
|