mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 13:43:48 +00:00
trying to speed up brackets page
This commit is contained in:
@@ -41,7 +41,7 @@ class Match < ActiveRecord::Base
|
||||
|
||||
def w1_name
|
||||
if self.w1
|
||||
Wrestler.find(self.w1).name
|
||||
wrestler1.name
|
||||
else
|
||||
self.loser1_name
|
||||
end
|
||||
@@ -49,7 +49,7 @@ class Match < ActiveRecord::Base
|
||||
|
||||
def w2_name
|
||||
if self.w2
|
||||
Wrestler.find(self.w2).name
|
||||
wrestler2.name
|
||||
else
|
||||
self.loser2_name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user