1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 15:42:09 +00:00

Created Pool 1 of 10 Man Bracket

This commit is contained in:
Jacob Cody Wimer
2014-01-24 08:41:49 -05:00
parent e36b4ec5ab
commit dddedcf30f
11 changed files with 104 additions and 13 deletions

View File

@@ -1,4 +1,13 @@
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