add two columns into permits, namely private and use_blockchain

This commit is contained in:
nigel007 2020-12-30 16:16:44 +08:00
parent 213c24892d
commit 27b3bdc97b
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class ProjectsController < ApplicationController
private private
def project_params def project_params
params.permit(:user_id, :name, :description, :repository_name, params.permit(:user_id, :name, :description, :repository_name,
:project_category_id, :project_language_id, :license_id, :ignore_id) :project_category_id, :project_language_id, :license_id, :ignore_id, :private, :blockchain)
end end
def mirror_params def mirror_params