mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Stopped saving matchups_array to test page speed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user