summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-03 05:04:23 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-03 05:04:23 -0700
commit0c5e556922b4c7ff71c6af6255a0f6783e25ca0c (patch)
tree25d3df538ef33fcd3298672bfca8ef751e9fda22 /lib/api/projects.rb
parentcc03600b22342a541ab1b4617eaf4d38d6d2d1da (diff)
parent76e4d94d432b19d7dd58503c5eac46811630c04a (diff)
downloadgitlab-ce-0c5e556922b4c7ff71c6af6255a0f6783e25ca0c.tar.gz
Merge pull request #1360 from NARKOZ/api
API pagination
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb2
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