diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-04-11 12:02:52 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-04-11 12:02:52 +0400 |
commit | 872482678be0eef25191e118b8300112735f0023 (patch) | |
tree | 69a35c8780186490da6908c304c20ed52cd6a7ce /app/controllers/projects/wikis_controller.rb | |
parent | 415c0f4bbe12dbd78bf24d50e66e3092df07fa21 (diff) |
Speed up loading and add pagination to wiki pages page.
Diffstat (limited to 'app/controllers/projects/wikis_controller.rb')
-rw-r--r-- | app/controllers/projects/wikis_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb index 9444d5a6b77..bcd9e0d5219 100644 --- a/app/controllers/projects/wikis_controller.rb +++ b/app/controllers/projects/wikis_controller.rb @@ -7,7 +7,7 @@ class Projects::WikisController < Projects::ApplicationController before_filter :load_project_wiki def pages - @wiki_pages = @project_wiki.pages + @wiki_pages = Kaminari.paginate_array(@project_wiki.pages).page(params[:page]).per(30) end def show |