消息列表

This commit is contained in:
cxt 2016-08-30 16:15:57 +08:00
parent 23ff5f6449
commit 188b9197aa
1 changed files with 3 additions and 1 deletions

View File

@ -98,8 +98,10 @@ class AtMessage < ActiveRecord::Base
when 'JournalsForMessage'
if at_message.jour_type == 'Principal'
{controller: :users, action: :user_messages, id: at_message.at_user}
else
elsif at_message.jour_type == 'HomeworkCommon'
{controller: :homework_common, action: :index, course: at_message.jour.course_id}
elsif at_message.jour_type == 'Course'
{controller: :courses, action: :feedback, id: at_message.jour_id}
end
else