summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-08-13 12:23:51 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-08-13 12:29:03 +0200
commitcf3ba0209dc7dc8b9ac93d574a8f6296b858be40 (patch)
tree07fa92aa498deb4866ba6f75ed2e9cf03e1a2df6 /app/models/label.rb
parent9284038dbef5153dac40eda14f1685a72efe1d1a (diff)
downloadgitlab-ce-cf3ba0209dc7dc8b9ac93d574a8f6296b858be40.tar.gz
Update labels via API
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index b8dc11a5245..67932211ac5 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -7,10 +7,7 @@ class Label < ActiveRecord::Base
validates :project, presence: true
# Dont allow '?', '&', and ',' for label titles
- validates :title,
- presence: true,
- format: { with: /\A[^&\?,&]*\z/ },
- uniqueness: true
+ validates :title, presence: true, format: { with: /\A[^&\?,&]*\z/ }
scope :order_by_name, -> { reorder("labels.title ASC") }