1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-06 14:33:14 +00:00

Took out matchups_array saving, did not remove from database.

This commit is contained in:
2015-04-21 17:13:26 -04:00
parent 1a5f00e775
commit 367381208a

View File

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