Delegate Score.owner to parent team

This commit is contained in:
Thor77 2018-11-28 18:07:01 +01:00 committed by Malaber
parent 42e7141c52
commit 7f59d6fb0e
1 changed files with 2 additions and 0 deletions

View File

@ -3,4 +3,6 @@
class MatchScore < ApplicationRecord
belongs_to :match
belongs_to :team
delegate :owner, to: :team
end