From 6b3c3516cd0977fccc74c1812e14798b8a3f3372 Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 25 Dec 2013 16:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=BB=99=E7=95=99=E8=A8=80?= =?UTF-8?q?=E7=9A=84=E5=9B=9E=E5=A4=8D=E6=98=BE=E7=A4=BA=E5=9C=A8=E7=95=99?= =?UTF-8?q?=E8=A8=80=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index ea8109dd..3bcfcf6f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -222,7 +222,7 @@ class UsersController < ApplicationController # modified by fq def user_newfeedback - @jours = @user.journals_for_messages.reverse + @jours = @user.journals_for_messages.where('m_parent_id IS NULL').order('created_on DESC') @jours.each do |jour| jour.update_attribute(:status, false) end