summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-06-15 16:06:38 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2016-07-01 10:49:34 +0200
commit40c685c510fff48e0dc6a49c61704e8244ec6034 (patch)
tree7ec1cdead86bda0182047f675e6caa1ee2e835bb
parent631765748ebff2307a078dc6d50ef8367f3c5ff0 (diff)
downloadgitlab-ce-40c685c510fff48e0dc6a49c61704e8244ec6034.tar.gz
pass paginated array when deleting notes
-rw-r--r--lib/api/todos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/todos.rb b/lib/api/todos.rb
index db1f16cec59..10fd2aac092 100644
--- a/lib/api/todos.rb
+++ b/lib/api/todos.rb
@@ -47,7 +47,7 @@ module API
todos = find_todos
todos.each(&:done)
- present paginate(todos), with: Entities::Todo
+ present paginate(Kaminari.paginate_array(todos)), with: Entities::Todo
end
end
end