Browse Source

修复

pull/313/head
yystopf 3 years ago
parent
commit
5acd45bf85
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/forms/contents/create_form.rb

+ 1
- 1
app/forms/contents/create_form.rb 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



Loading…
Cancel
Save