1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

Fixed wrestler touch in match after_save callback

This commit is contained in:
2015-12-23 16:31:37 +00:00
parent 5ee949d02a
commit fc3581e33e

View File

@@ -6,8 +6,10 @@ class Match < ActiveRecord::Base
after_save do
if self.finished == 1 && self.winner_id != nil
wrestler1.touch
wrestler2.touch
if self.w1 && self.w2
wrestler1.touch
wrestler2.touch
end
advance_wrestlers
calcSchoolPoints
end