mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-18 21:42:16 +00:00
Fixed wrestler.isWrestlingThisRound
This commit is contained in:
@@ -4,9 +4,9 @@ class Wrestler < ActiveRecord::Base
|
|||||||
has_many :matches
|
has_many :matches
|
||||||
|
|
||||||
def isWrestlingThisRound?(round)
|
def isWrestlingThisRound?(round)
|
||||||
@r_id = Match.where(r_id: self.id, round: round)
|
@r = Match.where(r_id: self.id, round: round)
|
||||||
@g_id = Match.where(g_id: self.id, round: round)
|
@g = Match.where(g_id: self.id, round: round)
|
||||||
if @r_id or @g_id
|
if @r or @g
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user