forked from Gitlink/forgeplus
fixed 发贴标题长度增加200
This commit is contained in:
parent
bdaf2b759a
commit
db26f663e6
|
@ -20,7 +20,7 @@ class Memo < ApplicationRecord
|
|||
validates_presence_of :author_id, :subject,:content
|
||||
# 若是主题帖,则内容可以是空
|
||||
#validates :content, presence: true, if: Proc.new{|o| !o.parent_id.nil? }
|
||||
validates_length_of :subject, maximum: 50
|
||||
validates_length_of :subject, maximum: 200
|
||||
|
||||
validate :cannot_reply_to_locked_topic, :on => :create
|
||||
|
||||
|
|
Loading…
Reference in New Issue