1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-05 06:07:20 +00:00
Files
wrestlingdev.com/app/models/tournament.rb
2014-12-15 13:12:39 -05:00

14 lines
309 B
Ruby

class Tournament < ActiveRecord::Base
has_many :schools, dependent: :destroy
has_many :weights, dependent: :destroy
has_many :matches, dependent: :destroy
has_many :mats, dependent: :destroy
def bouts
@pool = Pool.new
@pool.createPool(self.id)
@bouts = Bout.all
return @bouts
end
end