修复讨论区at错误

This commit is contained in:
guange 2015-12-17 18:07:19 +08:00
parent ed649e0724
commit 716604903b
1 changed files with 4 additions and 2 deletions

View File

@ -80,8 +80,10 @@ class BoardsController < ApplicationController
end
end
@project.boards.messages.each do |m|
User.current.at_messages.unviewed('Message', m.id).each {|x| x.viewed!}
@project.boards.each do |board|
board.messages.each do |m|
User.current.at_messages.unviewed('Message', m.id).each {|x| x.viewed!}
end
end
elsif @course