Delegate Score.owner to parent team
This commit is contained in:
parent
42e7141c52
commit
7f59d6fb0e
|
|
@ -3,4 +3,6 @@
|
|||
class MatchScore < ApplicationRecord
|
||||
belongs_to :match
|
||||
belongs_to :team
|
||||
|
||||
delegate :owner, to: :team
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue