This commit is contained in:
parent
5acd45bf85
commit
632ade9d25
|
@ -3,7 +3,7 @@ class Contents::CreateForm < BaseForm
|
||||||
|
|
||||||
validates :filepath, presence: true
|
validates :filepath, presence: true
|
||||||
|
|
||||||
validates :new_branch, length: { maximum: 50 }, message: "分支名称过长,仅支持50的长度"
|
validates :new_branch, length: { maximum: 50}
|
||||||
|
|
||||||
validate :check_branch
|
validate :check_branch
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue