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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-11 15:07:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-11 15:07:56 +0300
commite105f6b881d9341331558c8c42f90391bab2fd19 (patch)
tree8b3dcfcd9b57f94bd1d8488c7728e6894a897829 /app/helpers/pagination_helper.rb
parent27ad9b4c89456548d3eaa380a8ab7cc7380f34c3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/pagination_helper.rb')
-rw-r--r--app/helpers/pagination_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb
index 3167142e193..88bf09f0c03 100644
--- a/app/helpers/pagination_helper.rb
+++ b/app/helpers/pagination_helper.rb
@@ -22,4 +22,8 @@ module PaginationHelper
def paginate_with_count(collection, remote: nil, total_pages: nil)
paginate(collection, remote: remote, theme: 'gitlab', total_pages: total_pages)
end
+
+ def page_size
+ Kaminari.config.default_per_page
+ end
end