diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-08-07 20:29:06 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-08-07 20:29:06 +0300 |
commit | ddb14e4098c9b16023cdd25743cb2dfb52481e5a (patch) | |
tree | 8e05a389dacf30ec13eb59e975e0c3dfff79003f /app/models/list.rb | |
parent | 21c18070283041fb016777493d61b42edac600e5 (diff) |
Backport issue board milestone lists EE changes
Diffstat (limited to 'app/models/list.rb')
-rw-r--r-- | app/models/list.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/list.rb b/app/models/list.rb index eabe3ffccbb..1a30acc83cf 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -4,7 +4,7 @@ class List < ActiveRecord::Base belongs_to :board belongs_to :label - enum list_type: { backlog: 0, label: 1, closed: 2, assignee: 3 } + enum list_type: { backlog: 0, label: 1, closed: 2, assignee: 3, milestone: 4 } validates :board, :list_type, presence: true validates :label, :position, presence: true, if: :label? @@ -27,11 +27,11 @@ class List < ActiveRecord::Base end def destroyable? - label? + self.class.destroyable_types.include?(list_type&.to_sym) end def movable? - label? + self.class.movable_types.include?(list_type&.to_sym) end def title |