mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-07 14:57:48 +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
|
after_save do
|
||||||
if self.finished == 1 && self.winner_id != nil
|
if self.finished == 1 && self.winner_id != nil
|
||||||
wrestler1.touch
|
if self.w1 && self.w2
|
||||||
wrestler2.touch
|
wrestler1.touch
|
||||||
|
wrestler2.touch
|
||||||
|
end
|
||||||
advance_wrestlers
|
advance_wrestlers
|
||||||
calcSchoolPoints
|
calcSchoolPoints
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user