gitlab-org--gitlab-foss/app/models/group_label.rb
2018-07-26 16:55:41 -07:00

13 lines
200 B
Ruby

# frozen_string_literal: true
class GroupLabel < Label
belongs_to :group
validates :group, presence: true
alias_attribute :subject, :group
def subject_foreign_key
'group_id'
end
end