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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-29 20:19:26 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-29 20:19:26 +0400
commitd45a6b2941f30d71f828e0fc8adaeab19f87b1a0 (patch)
treed774fc68fdafdce0936924418be2e10743f2af74 /app/models/label.rb
parent6fb9badcaef5152c60bf4091899a84b34f5cc1b8 (diff)
Migrate issue/mr labels from act_as_taggable to own labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index 17f293b698f..31f68c31e5c 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -4,4 +4,9 @@ class Label < ActiveRecord::Base
validates :color, format: { with: /\A\#[0-9A-Fa-f]{3}{1,2}+\Z/ }, allow_blank: true
validates :project, presence: true
+ validates :title, presence: true
+
+ def name
+ title
+ end
end