summaryrefslogtreecommitdiff
path: root/app/models/global_label.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/global_label.rb')
-rw-r--r--app/models/global_label.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/global_label.rb b/app/models/global_label.rb
index ddd4bad5c21..698a7bbd327 100644
--- a/app/models/global_label.rb
+++ b/app/models/global_label.rb
@@ -4,6 +4,10 @@ class GlobalLabel
delegate :color, :description, to: :@first_label
+ def for_display
+ @first_label
+ end
+
def self.build_collection(labels)
labels = labels.group_by(&:title)