Use the friendly ID gem for contest slugs

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