This commit is contained in:
2022-09-06 09:00:05 +08:00
parent d03b45eecf
commit 5acd45bf85

View File

@@ -3,7 +3,7 @@ class Contents::CreateForm < BaseForm
validates :filepath, presence: true
validates :branch, :new_branch, length: { maximum: 50 }
validates :new_branch, length: { maximum: 50 }, message: "分支名称过长仅支持50的长度"
validate :check_branch