This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
新增:创建文件对分支长度进行验证
pull/313/head
yystopf
3 years ago
parent
32a9d762d8
commit
d03b45eecf
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 :branch, :new_branch, length: { maximum: 50 }
validate :check_branch
def check_branch
Write
Preview
Loading…
Cancel
Save