1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

Saving matchups_array again.

This commit is contained in:
2015-04-21 21:26:10 -04:00
parent b61431930f
commit 9de0d46e66

View File

@@ -8,14 +8,14 @@ class Tournament < ActiveRecord::Base
serialize :matchups_array
def upcomingMatches
@matches = generateMatchups
# 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