fix: project private params to boolean
This commit is contained in:
parent
f8654edc3b
commit
7499d8af89
|
@ -60,6 +60,6 @@ class Projects::CreateService < ApplicationService
|
||||||
# end
|
# end
|
||||||
|
|
||||||
def repo_is_public
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue