112f470572
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
11 lines
169 B
Ruby
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
|