1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/app/models/school.rb
2014-01-24 08:41:49 -05:00

14 lines
259 B
Ruby

class School < ActiveRecord::Base
belongs_to :tournament
has_many :wrestlers, dependent: :destroy
#calculate score here
#def score
# @score = 0
# self.wrestlers.each do |w|
# @score = @score + w.season_win * 2
# end
# self.score = @score
#end
end