Remove unused evaluate status method
This commit is contained in:
parent
cb00cd7be8
commit
c93af46072
|
|
@ -25,16 +25,6 @@ class Match < ApplicationRecord
|
||||||
errors.add(:stage_xor_group, 'Stage and Group missing or both present') unless stage.present? ^ group.present?
|
errors.add(:stage_xor_group, 'Stage and Group missing or both present') unless stage.present? ^ group.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def evaluate_status
|
|
||||||
if score_team1 < score_team2
|
|
||||||
:team2_won
|
|
||||||
elsif score_team2 < score_team1
|
|
||||||
:team1_won
|
|
||||||
else
|
|
||||||
group_match? ? :undecided : :in_progress
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def group_match?
|
def group_match?
|
||||||
group.present?
|
group.present?
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue