chore(rubocop): fix Rails/OutputSafety

This commit is contained in:
Colin Darie 2023-04-19 09:26:28 +02:00
parent 3317f19323
commit ca11ec8380
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ class TypesDeChamp::PrefillRepetitionTypeDeChamp < TypesDeChamp::PrefillTypeDeCh
[
I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html"),
subchamps_all_possible_values
].join("</br>").html_safe # rubocop:disable Rails/OutputSafety
].join("</br>").html_safe
end
def example_value

View file

@ -83,6 +83,6 @@ class TypesDeChamp::PrefillTypeDeChamp < SimpleDelegator
end
def description
@description ||= I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html", default: nil)&.html_safe # rubocop:disable Rails/OutputSafety
@description ||= I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html", default: nil)&.html_safe
end
end