Delegate owner attribute to tournament
This commit is contained in:
parent
668584c68b
commit
8b3b8352e5
|
|
@ -6,4 +6,6 @@ class Team < ApplicationRecord
|
|||
has_many :scores, dependent: :destroy
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
delegate :owner, to: :tournament
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue