From 508cdec33f6452b77b67831362d110bebd0218e3 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 26 Jan 2023 10:41:15 +0100 Subject: [PATCH] fix(morph): ids should not start with numbers --- app/models/champ.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/champ.rb b/app/models/champ.rb index 21e170978..7ab717a27 100644 --- a/app/models/champ.rb +++ b/app/models/champ.rb @@ -224,7 +224,7 @@ class Champ < ApplicationRecord private def html_id - "#{stable_id}-#{id}" + "champ-#{stable_id}-#{id}" end def needs_dossier_id?