Add public form to add completions

This commit is contained in:
sto
2025-11-20 10:24:26 +01:00
parent b87800f6bd
commit 3e071f9281
8 changed files with 78 additions and 9 deletions

View File

@@ -31,6 +31,8 @@ class Contestant < ApplicationRecord
validates :name, presence: true
validates :time_seconds, presence: true
generates_token_for :token
def form_name
if email.present?
"#{name} - #{email}"