Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-07-19 14:05:56 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-07-19 14:09:57 +0300
commitbaa9ce848070e76ebec12322f938ac8ec7178cf0 (patch)
tree2b752ca64459af860f621a2f612b3f4dcba777ab /lib/api/todos.rb
parent50abec8ca36c5cbdb1f7878b3ac956211fc67d3d (diff)
Return the number of marked todos
Diffstat (limited to 'lib/api/todos.rb')
-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 2a6bfa98ca4..26c24c3baff 100644
--- a/lib/api/todos.rb
+++ b/lib/api/todos.rb
@@ -75,7 +75,7 @@ module API
todos = find_todos
todos.each(&:done)
- present paginate(Kaminari.paginate_array(todos)), with: Entities::Todo, current_user: current_user
+ todos.length
end
end
end