From 327b49fe88e6ddc36a18c6dbdc98d11d51f950be Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 23 Dec 2015 17:30:02 +0000 Subject: [PATCH] Changed match callback to update instead of save --- app/models/match.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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