From d0d562ddf8ad44a0b21e699af6f97aec02013e04 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Sat, 25 Apr 2015 23:32:33 -0400 Subject: [PATCH] UpcomingMatches blows up if there are no wrestlers --- app/models/school.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/school.rb b/app/models/school.rb index da67374..489883e 100644 --- a/app/models/school.rb +++ b/app/models/school.rb @@ -5,7 +5,6 @@ class School < ActiveRecord::Base #calculate score here def score - @matches = self.tournament.upcomingMatches return 0 end end