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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user