diff --git a/app/models/wrestler.rb b/app/models/wrestler.rb index 2fcdbf7..f38c6fc 100644 --- a/app/models/wrestler.rb +++ b/app/models/wrestler.rb @@ -4,9 +4,9 @@ class Wrestler < ActiveRecord::Base has_many :matches def isWrestlingThisRound?(round) - @r_id = Match.where(r_id: self.id, round: round) - @g_id = Match.where(g_id: self.id, round: round) - if @r_id or @g_id + @r = Match.where(r_id: self.id, round: round) + @g = Match.where(g_id: self.id, round: round) + if @r or @g return true else return false