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
fix: project private params to boolean
tags/v4.0.0^2
yystopf
4 years ago
parent
f8654edc3b
commit
7499d8af89
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/services/projects/create_service.rb
+ 1
- 1
app/services/projects/create_service.rb
View File
@@ -60,6 +60,6 @@ class Projects::CreateService < ApplicationService
# end
def repo_is_public
params[:private].blank? ? true : !params[:private]
params[:private].blank? ? true : !
(ActiveModel::Type::Boolean.new.cast(
params[:private]
).nil? ? false : ActiveModel::Type::Boolean.new.cast(params[:private]))
end
end
Write
Preview
Loading…
Cancel
Save