1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Working on Pool class

This commit is contained in:
2015-01-26 13:40:25 -05:00
parent e9ff75a0a2
commit ae4b2718b5
5 changed files with 50 additions and 17 deletions

View File

@@ -2,4 +2,14 @@ class Wrestler < ActiveRecord::Base
belongs_to :school
belongs_to :weight
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
return true
else
return false
end
end
end