1
0
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:
2015-11-02 11:14:03 -05:00
parent 3734258e6c
commit 364ee21e3f
3 changed files with 10 additions and 10 deletions

View File

@@ -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