Use the friendly ID gem for contest slugs
All checks were successful
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 10s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 33s

This commit is contained in:
sto
2025-03-26 17:40:56 +01:00
parent a5d165c4b3
commit 2144c22bd9
12 changed files with 164 additions and 10 deletions

View File

@@ -84,6 +84,6 @@ class ContestsController < ApplicationController
end
def contest_params
params.expect(contest: [ :name, :team, :allow_registration, :slug ])
params.expect(contest: [ :name, :team, :allow_registration ])
end
end