2015-08-11 15:54:05 +08:00
|
|
|
class CourseActivity < ActiveRecord::Base
|
|
|
|
attr_accessible :user_id, :course_act_id,:course_act_type,:course_id
|
|
|
|
# 虚拟关联
|
2015-08-11 17:02:52 +08:00
|
|
|
belongs_to :course_act ,:polymorphic => true
|
2015-08-11 15:54:05 +08:00
|
|
|
belongs_to :course
|
|
|
|
belongs_to :user
|
|
|
|
end
|