From 367381208a7cd67c62d6c9947c1b52de53fd0505 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 21 Apr 2015 17:13:26 -0400 Subject: [PATCH] Took out matchups_array saving, did not remove from database. --- app/models/tournament.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/models/tournament.rb b/app/models/tournament.rb index cf7d525..027bc1e 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -8,13 +8,14 @@ class Tournament < ActiveRecord::Base serialize :matchups_array def upcomingMatches - if self.matchups_array - return matchupHashesToObjects(self.matchups_array) - else - @matches = generateMatchups - saveMatchups(@matches) - return @matches - end + @matches = generateMatchups + # if self.matchups_array + # return matchupHashesToObjects(self.matchups_array) + # else + # @matches = generateMatchups + # saveMatchups(@matches) + # return @matches + # end end def generateMatchups