mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 22:03:49 +00:00
Saving matchups_array again.
This commit is contained in:
@@ -8,14 +8,14 @@ class Tournament < ActiveRecord::Base
|
|||||||
serialize :matchups_array
|
serialize :matchups_array
|
||||||
|
|
||||||
def upcomingMatches
|
def upcomingMatches
|
||||||
@matches = generateMatchups
|
# @matches = generateMatchups
|
||||||
# if self.matchups_array
|
if self.matchups_array
|
||||||
# return matchupHashesToObjects(self.matchups_array)
|
return matchupHashesToObjects(self.matchups_array)
|
||||||
# else
|
else
|
||||||
# @matches = generateMatchups
|
@matches = generateMatchups
|
||||||
# saveMatchups(@matches)
|
saveMatchups(@matches)
|
||||||
# return @matches
|
return @matches
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def generateMatchups
|
def generateMatchups
|
||||||
|
|||||||
Reference in New Issue
Block a user