debian-mirror-gitlab/app/models/group_label.rb

14 lines
200 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2016-11-03 12:29:30 +05:30
class GroupLabel < Label
belongs_to :group
validates :group, presence: true
alias_attribute :subject, :group
2016-11-24 13:41:30 +05:30
def subject_foreign_key
'group_id'
end
2016-11-03 12:29:30 +05:30
end