贴吧帖子已读更新

This commit is contained in:
ouyangxuhua 2015-09-02 11:46:49 +08:00
parent 48ddee478e
commit 192c5735cb
1 changed files with 5 additions and 6 deletions

View File

@ -124,12 +124,11 @@ class MemosController < ApplicationController
end
end
end
else
query_memo_messages = @memo.memo_messages
query_memo_messages.each do |query_memo_message|
if User.current.id == query_memo_message.user_id
query_memo_message.update_attributes(:viewed => true)
end
end
query_memo_messages = @memo.memo_messages
query_memo_messages.each do |query_memo_message|
if User.current.id == query_memo_message.user_id
query_memo_message.update_attributes(:viewed => true)
end
end