diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 18:44:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 18:44:42 +0300 |
commit | 4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch) | |
tree | 5423a1c7516cffe36384133ade12572cf709398d /app/models/todo.rb | |
parent | e570267f2f6b326480d284e0164a6464ba4081bc (diff) |
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r-- | app/models/todo.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb index c8138587d83..23685fb68e0 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -149,8 +149,8 @@ class Todo < ApplicationRecord .order('todos.created_at') end - def pluck_user_id - pluck(:user_id) + def distinct_user_ids + distinct.pluck(:user_id) end # Count todos grouped by user_id and state, using an UNION query @@ -252,4 +252,4 @@ class Todo < ApplicationRecord end end -Todo.prepend_if_ee('EE::Todo') +Todo.prepend_mod_with('Todo') |