Merge pull request '修改易修标题验证规则' (#203) from yystopf/forgeplus:hh_fix_bug into develop

This commit is contained in:
jasder 2021-10-18 17:41:51 +08:00
commit fddd466907
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ class Issues::CreateForm
validates :subject, presence: { message: "不能为空" }
validates :subject, length: { maximum: 80, too_long: "不能超过80个字符" }
validates :subject, length: { maximum: 200, too_long: "不能超过200个字符" }
end

View File

@ -5,6 +5,6 @@ class Issues::UpdateForm
validates :subject, presence: { message: "不能为空" }
validates :subject, length: { maximum: 80, too_long: "不能超过80个字符" }
validates :subject, length: { maximum: 200, too_long: "不能超过200个字符" }
end