diff options
author | Toon Claes <toon@gitlab.com> | 2017-06-20 21:32:49 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-06-20 21:32:49 +0200 |
commit | 451e25532ff43de8151b71ced8246f709c08bf92 (patch) | |
tree | d317d555f78b4314d6a3f3989ac56c40017a131d /app/models/concerns/issuable.rb | |
parent | fcd46c1af4ceeec7813a91111dfce5e492695119 (diff) | |
download | gitlab-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.rb | 6 |
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 |