diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-15 23:07:59 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:59 -0300 |
commit | 847ebce90ab66dd21541ce8bd147931c49814e88 (patch) | |
tree | 6568aef72d3496c5cf3a5cbd11d80ff06a1fa750 /app/models/list.rb | |
parent | 66da64ae1e21287a04bd2dc73034eafee688c53f (diff) | |
download | gitlab-ce-847ebce90ab66dd21541ce8bd147931c49814e88.tar.gz |
Remove useless delegate method on List model
Diffstat (limited to 'app/models/list.rb')
-rw-r--r-- | app/models/list.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/list.rb b/app/models/list.rb index 6f639a51150..41f79513a10 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -9,12 +9,10 @@ class List < ActiveRecord::Base validates :label_id, uniqueness: { scope: :board_id }, if: :label? validates :position, numericality: { only_integer: true, greater_than_or_equal_to: 0 }, if: :label? - delegate :name, to: :label, allow_nil: true, prefix: true - before_destroy :can_be_destroyed, unless: :label? def title - label? ? label_name : list_type.humanize + label? ? label.name : list_type.humanize end private |