From 63d29b38ca798e2088c45eabca6ff9fedf554a5e Mon Sep 17 00:00:00 2001 From: cxt Date: Wed, 4 Jan 2017 17:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BA=86=E8=AF=84=E5=88=86?= =?UTF-8?q?=E7=9A=84=E7=AB=9E=E8=B5=9B=E4=BD=9C=E5=93=81=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/contestant_work.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/contestant_work.rb b/app/models/contestant_work.rb index a1d2a9bb0..cccdd2cca 100644 --- a/app/models/contestant_work.rb +++ b/app/models/contestant_work.rb @@ -26,6 +26,8 @@ class ContestantWork < ActiveRecord::Base end def set_work_score - set_final_score self.work,self + if self.id + set_final_score self.work,self + end end end