|
|
@ -91,7 +91,7 @@ class Course < ApplicationRecord
|
|
|
|
NORMAL = 6 # 普通用户
|
|
|
|
NORMAL = 6 # 普通用户
|
|
|
|
Anonymous = 7 # 普未登录
|
|
|
|
Anonymous = 7 # 普未登录
|
|
|
|
|
|
|
|
|
|
|
|
validates :name, presence: true, length: { maximum: 30 }
|
|
|
|
validates :name, presence: true, length: { maximum: 60 }
|
|
|
|
|
|
|
|
|
|
|
|
after_create :create_board_sync, :act_as_course_activity, :send_tiding
|
|
|
|
after_create :create_board_sync, :act_as_course_activity, :send_tiding
|
|
|
|
|
|
|
|
|
|
|
|