本番デプロイ設定: SSL, Kamal, API環境変数化, テスト修正

This commit is contained in:
2026-02-21 23:45:12 +09:00
parent e90ea88758
commit 9626db3dcf
21 changed files with 226 additions and 78 deletions

View File

@@ -21,4 +21,9 @@ class Participant < ApplicationRecord
in: %w[AUSTRIA ENGLAND FRANCE GERMANY ITALY RUSSIA TURKEY],
message: "無効な国です"
}, allow_nil: true
# 表示名:国名が設定済みなら国名、未設定ならユーザー名
def display_name
power.present? ? power : user.username
end
end