This commit is contained in:
yystopf 2022-09-06 09:04:46 +08:00
parent 632ade9d25
commit 4878d66620
1 changed files with 1 additions and 1 deletions

View File

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