From 188b9197aa2ff2cc2341226ae3c26a661027df1a Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 30 Aug 2016 16:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/at_message.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/at_message.rb b/app/models/at_message.rb index bca2c7ba4..5ca2de507 100644 --- a/app/models/at_message.rb +++ b/app/models/at_message.rb @@ -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