mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:创建文件对分支长度进行验证
This commit is contained in:
@@ -3,6 +3,8 @@ class Contents::CreateForm < BaseForm
|
||||
|
||||
validates :filepath, presence: true
|
||||
|
||||
validates :branch, :new_branch, length: { maximum: 50 }
|
||||
|
||||
validate :check_branch
|
||||
|
||||
def check_branch
|
||||
|
||||
Reference in New Issue
Block a user