summaryrefslogtreecommitdiff
path: root/app/models/group_label.rb
blob: ff14529c6e6d60b20cab988b14bc8ee4a99ca220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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