提交 ba2089e0 编写于 作者: P Phil Hughes 提交者: Jacob Schatz

Uses take rather than Kaminari

上级 af02f6ae
......@@ -270,12 +270,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册