gitlab-org--gitlab-foss/app/models/group_label.rb
James Lopez 112f470572 Fix cross-project references copy to include the project reference
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
2017-01-03 13:01:46 +01:00

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