summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index d165e60e4c3..634fa9e7eda 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -96,10 +96,11 @@ class Todo < ApplicationRecord
def for_group_ids_and_descendants(group_ids)
groups = Group.groups_including_descendants_by(group_ids)
- from_union([
- for_project(Project.for_group(groups)),
- for_group(groups)
- ])
+ from_union(
+ [
+ for_project(Project.for_group(groups)),
+ for_group(groups)
+ ])
end
# Returns `true` if the current user has any todos for the given target with the optional given state.