Skip to content

Commit

Permalink
Add missing permitted params to tracks controller
Browse files Browse the repository at this point in the history
  • Loading branch information
BGMP committed May 6, 2024
1 parent c768048 commit 52bbe07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tracks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ def set_track

# Only allow a list of trusted parameters through.
def track_params
params.require(:track).permit(:name, :short_name, :difficulty, :length, :folder_name, :season)
params.require(:track).permit(:name, :short_name, :difficulty, :length, :folder_name, :author, :stock, :average_lap_time, :season)
end
end

0 comments on commit 52bbe07

Please sign in to comment.