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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-07 15:09:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-07 15:09:46 +0300
commit896b68514b43b9646d763e67f63fbe8f9ef2f723 (patch)
treeb0b21f37cbbc809782532e6d6180677c7c4c9e30 /app/models/todo.rb
parentd8803c7e40bd35d883ef007ddc56907bd837a748 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb4
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?