Add winner method to match
This commit is contained in:
parent
4fb8b75769
commit
e8465df700
|
|
@ -19,6 +19,11 @@ class Match < ApplicationRecord
|
|||
stage ? stage.owner : group.owner
|
||||
end
|
||||
|
||||
def winner
|
||||
evaluate_winner
|
||||
# This should maybe be cached or put into db
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def evaluate_winner
|
||||
|
|
|
|||
Loading…
Reference in New Issue