Browse Source

Merge remote-tracking branch 'origin/develop' into develop

pull/313/head
“xxq250” 3 years ago
parent
commit
3a34d8682c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/forms/contents/create_form.rb

+ 2
- 0
app/forms/contents/create_form.rb View File

@@ -3,6 +3,8 @@ class Contents::CreateForm < BaseForm

validates :filepath, presence: true

validates :new_branch, length: { maximum: 50, too_long: "分支名称过长,仅支持%{count}的长度"}

validate :check_branch

def check_branch


Loading…
Cancel
Save