控制界面
This commit is contained in:
parent
ff53840029
commit
7c7c337deb
|
@ -106,9 +106,9 @@ class UsersController < ApplicationController
|
|||
end
|
||||
# 当前用户查看消息,则设置消息为已读
|
||||
querys = @user.course_messages
|
||||
# if User.current.id == @user.id
|
||||
# querys.update_all(:viewed => true)
|
||||
# end
|
||||
if User.current.id == @user.id
|
||||
querys.update_all(:viewed => true)
|
||||
end
|
||||
@new_message_count = @user.forge_messages.count + @user.memo_messages.count + @user.course_messages.count + @user.user_feedback_messages.count
|
||||
case params[:type]
|
||||
when nil
|
||||
|
|
Loading…
Reference in New Issue