|
|
|
@ -13,7 +13,7 @@ class Discuss < ApplicationRecord
|
|
|
|
|
belongs_to :challenge, optional: true
|
|
|
|
|
validate :validate_sensitive_string
|
|
|
|
|
|
|
|
|
|
validates :content, length: { maximum: 1000, too_long: "内容不能超过1000个字符" }
|
|
|
|
|
validates :content, length: { maximum: 1000, too_long: "不能超过1000个字符" }
|
|
|
|
|
|
|
|
|
|
after_create :send_tiding
|
|
|
|
|
|
|
|
|
|