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

14 lines
200 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-09-19 11:04:38 -04:00
class GroupLabel < Label
belongs_to :group
validates :group, presence: true
alias_attribute :subject, :group
def subject_foreign_key
'group_id'
end
2016-09-19 11:04:38 -04:00
end