summaryrefslogtreecommitdiff
path: root/app/models/group_label.rb
blob: 92c83b54861debec8f627dce1a24649757aa5a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
class GroupLabel < Label
  belongs_to :group

  validates :group, presence: true

  alias_attribute :subject, :group

  def subject_foreign_key
    'group_id'
  end
end