2
0

Change rule translation interface to display english name and populate empty translations (#35170)

This commit is contained in:
Claire
2025-06-25 12:02:19 +02:00
committed by GitHub
parent 72f2f35bfb
commit 0a7418e6d8
4 changed files with 9 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ module Admin
def edit
authorize @rule, :update?
missing_languages = RuleTranslation.languages - @rule.translations.pluck(:language)
missing_languages.each { |lang| @rule.translations.build(language: lang) }
end
def create