课程主页

This commit is contained in:
yutao 2015-07-18 17:01:22 +08:00
parent 5ecf7f12af
commit 679ad8406d
2 changed files with 7 additions and 4 deletions

View File

@ -57,7 +57,7 @@ module ActivitiesHelper
end end
#留言 #留言
if activity.act_type == 'JournalsForMessage' if activity.act_type == 'JournalsForMessage'
return [activity.act.jour_type,activity.act.jour_id] return [activity.act.jour_type,activity.act.jour_id,activity.act.user_id]
end end
# HomeworkCommon Issue Journal Message News # HomeworkCommon Issue Journal Message News

View File

@ -14,8 +14,11 @@ class Activity < ActiveRecord::Base
#helper :activities #helper :activities
include ActivitiesHelper include ActivitiesHelper
def set_container_type_val def set_container_type_val
container_type,container_id =get_container_type(self) params =get_container_type(self)
self.activity_container_type = container_type self.activity_container_type = params[0]
self.activity_container_id = container_id self.activity_container_id = params[1]
if(self.act_type == 'JournalsForMessage')
self.user_id = params[2]
end
end end
end end