diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-04-21 13:21:57 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-04-21 19:31:34 +0300 |
commit | b35b54e0bf4ca973966ede1add15d88327a013d2 (patch) | |
tree | 665f0a5cbfb24ab9453e687dccf152a8f6eb6e40 /lib/api | |
parent | b3e2939aa2904c92aba0399d511cb05228bfc9be (diff) | |
download | gitlab-ci-b35b54e0bf4ca973966ede1add15d88327a013d2.tar.gz |
projects search on dashboard
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index ea10a82..e61a944 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -108,7 +108,7 @@ module API # GET /projects get do gitlab_projects = Project.from_gitlab( - current_user, params[:page], params[:per_page], :authorized + current_user, :authorized, { page: params[:page], per_page: params[:per_page] } ) ids = gitlab_projects.map { |project| project.id } @@ -122,7 +122,7 @@ module API # GET /projects/owned get "owned" do gitlab_projects = Project.from_gitlab( - current_user, params[:page], params[:per_page], :owned + current_user, :owned, { page: params[:page], per_page: params[:per_page] } ) ids = gitlab_projects.map { |project| project.id } |