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