1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-26 16:20:55 +00:00

Added pages for teampointsadjust and spearated wrestler and school deducted points

This commit is contained in:
2016-01-12 17:36:45 +00:00
parent 227e588658
commit c6626988db
9 changed files with 148 additions and 7 deletions

View File

@@ -86,4 +86,19 @@ class Tournament < ActiveRecord::Base
m.save
end
end
def pointAdjustments
point_adjustments = []
self.schools.each do |s|
s.deductedPoints.each do |d|
point_adjustments << d
end
end
self.wrestlers.each do |w|
w.deductedPoints.each do |d|
point_adjustments << d
end
end
point_adjustments
end
end