diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-03 04:46:29 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-03 04:46:29 -0700 |
commit | 76e4d94d432b19d7dd58503c5eac46811630c04a (patch) | |
tree | 25d3df538ef33fcd3298672bfca8ef751e9fda22 /lib/api/projects.rb | |
parent | 6817a6a2952bc6af74eb239982ed337f90897f98 (diff) | |
download | gitlab-ce-76e4d94d432b19d7dd58503c5eac46811630c04a.tar.gz |
add pagination to API
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index f42849cd2f2..3d4fde9270f 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -9,7 +9,7 @@ module Gitlab # Example Request: # GET /projects get do - @projects = current_user.projects + @projects = paginate current_user.projects present @projects, with: Entities::Project end |