debian-mirror-gitlab/app/helpers/keyset_helper.rb
2021-09-04 02:52:04 +05:30

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