diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-14 12:17:52 +0400 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-14 12:17:52 +0400 |
commit | cbc90565b55d89704d64bc48db323b82b739a873 (patch) | |
tree | f6bb4220068bafab7a1b1a57d2b13631a553c4a2 /app/models/label.rb | |
parent | 04ad197bcc41a26da2c2a80c5b4ffbfad2c296ee (diff) |
Do label validation for issues/merge requests API
Diffstat (limited to 'app/models/label.rb')
-rw-r--r-- | app/models/label.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 515ed447f00..a511b7940ed 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -1,4 +1,6 @@ class Label < ActiveRecord::Base + DEFAULT_COLOR = '#82C5FF' + belongs_to :project has_many :label_links, dependent: :destroy has_many :issues, through: :label_links, source: :target, source_type: 'Issue' |