fix subprojects controller

This commit is contained in:
Stefan Tollkühn
2025-07-22 16:00:52 +02:00
parent b0dca65841
commit 353c7454c5

View File

@@ -60,11 +60,11 @@ class SubprojectsController < ApplicationController
private private
# Use callbacks to share common setup or constraints between actions. # Use callbacks to share common setup or constraints between actions.
def set_subproject def set_subproject
@subproject = Subproject.find(params.expect(:id)) @subproject = Subproject.find(params[:id])
end end
# Only allow a list of trusted parameters through. # Only allow a list of trusted parameters through.
def subproject_params def subproject_params
params.expect(subproject: [ :subproject_name, :project_id, :client_id, :owner_id, :builder_id ]) params.require(:subproject).permit(:subproject_name, :project_id, :client_id, :owner_id, :builder_id)
end end
end end