控制界面

This commit is contained in:
huang 2015-08-20 16:29:43 +08:00
parent ff53840029
commit 7c7c337deb
1 changed files with 3 additions and 3 deletions

View File

@ -106,9 +106,9 @@ class UsersController < ApplicationController
end end
# 当前用户查看消息,则设置消息为已读 # 当前用户查看消息,则设置消息为已读
querys = @user.course_messages querys = @user.course_messages
# if User.current.id == @user.id if User.current.id == @user.id
# querys.update_all(:viewed => true) querys.update_all(:viewed => true)
# end end
@new_message_count = @user.forge_messages.count + @user.memo_messages.count + @user.course_messages.count + @user.user_feedback_messages.count @new_message_count = @user.forge_messages.count + @user.memo_messages.count + @user.course_messages.count + @user.user_feedback_messages.count
case params[:type] case params[:type]
when nil when nil