Commit ba2089e0 authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz

Uses take rather than Kaminari

parent af02f6ae
...@@ -270,12 +270,12 @@ class ProjectsController < Projects::ApplicationController ...@@ -270,12 +270,12 @@ class ProjectsController < Projects::ApplicationController
branches = BranchesFinder.new(@repository, params).execute branches = BranchesFinder.new(@repository, params).execute
options = { options = {
'Branches' => Kaminari.paginate_array(branches).page(params[:page]).per(100), 'Branches' => branches.take(100),
} }
unless @repository.tag_count.zero? unless @repository.tag_count.zero?
tags = TagsFinder.new(@repository, params).execute tags = TagsFinder.new(@repository, params).execute
options['Tags'] = Kaminari.paginate_array(tags).page(params[:page]).per(100) options['Tags'] = tags.take(100)
end end
# If reference is commit id - we should add it to branch/tag selectbox # If reference is commit id - we should add it to branch/tag selectbox
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment