From ba8ce0b73a39e0c17974af3a15ec7e80c4176f9b Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 30 Jan 2015 15:43:41 -0500 Subject: [PATCH] Fixed wrestler.isWrestlingThisRound --- app/models/wrestler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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