diff options
| author | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-12-28 13:33:03 +0100 |
|---|---|---|
| committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-12-28 13:33:35 +0100 |
| commit | f4cff4dcd0b11d4597efe454731838fbf5803516 (patch) | |
| tree | d150ec0e680e836fed6c735e8cbd62de019ee3d3 /lib/api/builds.rb | |
| parent | f39959d00a1358ba7d73ebeaccb827738c8151ba (diff) | |
| download | gitlab-ce-f4cff4dcd0b11d4597efe454731838fbf5803516.tar.gz | |
Modify build pagination to use 'paginate' helper
Diffstat (limited to 'lib/api/builds.rb')
| -rw-r--r-- | lib/api/builds.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb index 863be0d5e40..f219b0f5241 100644 --- a/lib/api/builds.rb +++ b/lib/api/builds.rb @@ -26,10 +26,7 @@ module API builds end - page = (params[:page] || 1).to_i - per_page = (params[:per_page] || 30).to_i - - present builds.page(page).per(per_page), with: Entities::Build + present paginate(builds), with: Entities::Build end # Get a specific build of a project |
