Merge branch 'develop' into pre_trustie_server
This commit is contained in:
commit
00e5735f0a
|
@ -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…
Reference in New Issue