Welcome to mirror list, hosted at ThFree Co, Russian Federation.

keyset_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7f6f88409139c6966fdbb25ffc5e247ccef3910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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