gitlab-org--gitlab-foss/app/models/group_label.rb

9 lines
226 B
Ruby

class GroupLabel < Label
belongs_to :group
validates :group, presence: true
def to_reference(source_project = nil, target_project = nil, format: :id)
super(source_project, target_project, format: format)
end
end