1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 13:30:02 +00:00

Stopped saving matchups_array to test page speed

This commit is contained in:
2015-04-21 22:15:18 -04:00
parent 794690fc00
commit 1c8ad90e8a

View File

@@ -8,14 +8,14 @@ class Tournament < ActiveRecord::Base
serialize :matchups_array serialize :matchups_array
def upcomingMatches def upcomingMatches
# @matches = generateMatchups
if self.matchups_array
return matchupHashesToObjects(self.matchups_array)
else
@matches = generateMatchups @matches = generateMatchups
saveMatchups(@matches) # if self.matchups_array
return @matches # return matchupHashesToObjects(self.matchups_array)
end # else
# @matches = generateMatchups
# saveMatchups(@matches)
# return @matches
# end
end end
def generateMatchups def generateMatchups