Permit parameters without root key

This commit is contained in:
Thor77 2019-04-07 14:00:06 +02:00
parent 667d6a028c
commit 8b07c46acd
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
3 changed files with 3 additions and 3 deletions

View File

@ -28,6 +28,6 @@ class MatchScoresController < ApplicationController
# Only allow a trusted parameter "white list" through.
def match_score_params
params.require(:match_score).permit(:points)
params.permit(:points)
end
end

View File

@ -26,6 +26,6 @@ class TeamsController < ApplicationController
end
def team_params
params.require(:team).permit(:name)
params.permit(:name)
end
end

View File

@ -48,6 +48,6 @@ class TournamentsController < ApplicationController
end
def tournament_params
params.require(:tournament).permit(:name, :description, :public, :teams)
params.permit(:name, :description, :public, :teams)
end
end