diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-07 15:09:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-07 15:09:46 +0300 |
commit | 896b68514b43b9646d763e67f63fbe8f9ef2f723 (patch) | |
tree | b0b21f37cbbc809782532e6d6180677c7c4c9e30 /app/models/todo.rb | |
parent | d8803c7e40bd35d883ef007ddc56907bd837a748 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r-- | app/models/todo.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb index 9d685fd73d3..dc42551f0ab 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -183,6 +183,10 @@ class Todo < ApplicationRecord target_type == "Commit" end + def for_design? + target_type == DesignManagement::Design.name + end + # override to return commits, which are not active record def target if for_commit? |