From e007ee58efd97cec709ac57957290b3ee0240f5b Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 8 Apr 2016 14:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E5=8A=A8=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/words_controller.rb | 2 +- public/assets/wechat/activities.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/words_controller.rb b/app/controllers/words_controller.rb index e6d1d9117..ed350ab51 100644 --- a/app/controllers/words_controller.rb +++ b/app/controllers/words_controller.rb @@ -276,7 +276,7 @@ class WordsController < ApplicationController ids = params[:asset_id].split(',') update_kindeditor_assets_owner ids,feedback[:id],OwnerTypeHelper::JOURNALSFORMESSAGE end - @homework_common.update_attributes(:updated_at => Time.now) + @homework_common.update_column(:updated_at, Time.now) update_course_activity(@homework_common.class,@homework_common.id) update_user_activity(@homework_common.class,@homework_common.id) update_org_activity(@homework_common.class,@homework_common.id) diff --git a/public/assets/wechat/activities.html b/public/assets/wechat/activities.html index 1642eb159..d3f3d9459 100644 --- a/public/assets/wechat/activities.html +++ b/public/assets/wechat/activities.html @@ -189,7 +189,7 @@ -
+