Skip to content
Snippets Groups Projects
Commit ce83d20b authored by Phil Hughes's avatar Phil Hughes
Browse files

Uses take rather than Kaminari

parent 5aede09f
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !7239. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -263,12 +263,12 @@ class ProjectsController < Projects::ApplicationController
branches = BranchesFinder.new(@repository, params).execute
 
options = {
'Branches' => Kaminari.paginate_array(branches).page(params[:page]).per(100),
'Branches' => branches.take(100),
}
 
unless @repository.tag_count.zero?
tags = TagsFinder.new(@repository, params).execute
options['Tags'] = Kaminari.paginate_array(tags).page(params[:page]).per(100)
options['Tags'] = tags.take(100)
end
 
# If reference is commit id - we should add it to branch/tag selectbox
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment