mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-23 02:54:40 +00:00
12 lines
254 B
Ruby
12 lines
254 B
Ruby
# frozen_string_literal: true
|
|
|
|
class LabelEntity < Issuables::BaseLabelEntity
|
|
expose :group_id
|
|
expose :project_id
|
|
expose :template
|
|
|
|
expose :priority, if: ->(*) { options.key?(:project) } do |label|
|
|
label.priority(options[:project])
|
|
end
|
|
end
|