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:
authorAhmad Sherif <me@ahmadsherif.com>2016-08-17 22:54:31 +0300
committerAhmad Sherif <me@ahmadsherif.com>2016-08-18 18:46:24 +0300
commit4ad028aed4f792e9a57cc41539312de7ef99d537 (patch)
treea343ddaa44cbe65597d7e41b7cec117a12cf22dd /app/services
parent548da42be51821951180eacf462d942c11c0c01b (diff)
Rename TodoService#mark_todos_as_done_by_id{,s}
Diffstat (limited to 'app/services')
-rw-r--r--app/services/todo_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/todo_service.rb b/app/services/todo_service.rb
index 5a2f7946082..daf4339cb48 100644
--- a/app/services/todo_service.rb
+++ b/app/services/todo_service.rb
@@ -142,10 +142,10 @@ class TodoService
# When user marks some todos as done
def mark_todos_as_done(todos, current_user)
- mark_todos_as_done_by_id(todos.select(&:id), current_user)
+ mark_todos_as_done_by_ids(todos.select(&:id), current_user)
end
- def mark_todos_as_done_by_id(ids, current_user)
+ def mark_todos_as_done_by_ids(ids, current_user)
todos = current_user.todos.where(id: ids)
marked_todos = todos.update_all(state: :done)