debian-mirror-gitlab/app/models/group_label.rb
2017-08-17 22:00:37 +05:30

11 lines
169 B
Ruby

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