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
|
stage ? stage.owner : group.owner
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def winner
|
||||||
|
evaluate_winner
|
||||||
|
# This should maybe be cached or put into db
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def evaluate_winner
|
def evaluate_winner
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue