lib/sportdb/models/models/match.rb in sportdb-models-2.0.0 vs lib/sportdb/models/models/match.rb in sportdb-models-2.0.1

- old
+ new

@@ -125,10 +125,11 @@ def score1ot=(value) self.score1et = value end def score2ot=(value) self.score2et = value end # match over? - def over?() play_at <= Time.now; end + ## todo/fix: add back time (hours/minutes) to date if present!!!! + def over?() date <= Date.today; end ## fix/todo: already added by ar magic ??? remove code def knockout?() knockout == true; end def complete?() score1.present? && score2.present?; end