summaryrefslogtreecommitdiff
path: root/app/models/concerns/issuable.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-06-20 21:32:49 +0200
committerToon Claes <toon@gitlab.com>2017-06-20 21:32:49 +0200
commit451e25532ff43de8151b71ced8246f709c08bf92 (patch)
treed317d555f78b4314d6a3f3989ac56c40017a131d /app/models/concerns/issuable.rb
parentfcd46c1af4ceeec7813a91111dfce5e492695119 (diff)
downloadgitlab-ce-451e25532ff43de8151b71ced8246f709c08bf92.tar.gz
Make MergeRequest respond to assignee_ids & assignee_ids=
To make it simpler to assign users to an Issuable, make MergeRequest support the attribute `assignee_ids`.
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r--app/models/concerns/issuable.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb
index 0a476efdaa9..1bebd55a089 100644
--- a/app/models/concerns/issuable.rb
+++ b/app/models/concerns/issuable.rb
@@ -108,11 +108,7 @@ module Issuable
end
def has_multiple_assignees?
- supports_multiple_assignees? && assignees.count > 1
- end
-
- def supports_multiple_assignees?
- respond_to?(:assignee_ids)
+ assignees.count > 1
end
end