forked from Gitlink/forgeplus
fix: issue subject validate
This commit is contained in:
parent
37e5e6d547
commit
73f558d7c3
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue