diff --git a/app/models/match.rb b/app/models/match.rb index d31d4c5..8240f0b 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -4,7 +4,7 @@ class Match < ActiveRecord::Base belongs_to :mat, touch: true has_many :wrestlers, :through => :weight - after_save do + after_update do if self.finished == 1 && self.winner_id != nil if self.w1 && self.w2 wrestler1.touch