Clean rubocop alerts
This commit is contained in:
parent
4a5e866974
commit
5a7b740f58
3 changed files with 3 additions and 3 deletions
|
@ -272,7 +272,7 @@ class TypeDeChamp < ApplicationRecord
|
|||
TypeDeChamp.type_champs.fetch(:checkbox),
|
||||
TypeDeChamp.type_champs.fetch(:drop_down_list),
|
||||
TypeDeChamp.type_champs.fetch(:regions),
|
||||
TypeDeChamp.type_champs.fetch(:repetition),
|
||||
TypeDeChamp.type_champs.fetch(:repetition)
|
||||
])
|
||||
end
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class TypesDeChamp::PrefillRepetitionTypeDeChamp < TypesDeChamp::PrefillTypeDeCh
|
|||
end
|
||||
|
||||
def possible_values_sentence
|
||||
"#{I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html")}<br>#{possible_values.join("<br>")}".html_safe
|
||||
"#{I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html")}<br>#{possible_values.join("<br>")}".html_safe # rubocop:disable Rails/OutputSafety
|
||||
end
|
||||
|
||||
def example_value
|
||||
|
|
|
@ -38,7 +38,7 @@ class TypesDeChamp::PrefillTypeDeChamp < SimpleDelegator
|
|||
|
||||
def possible_values_sentence
|
||||
if too_many_possible_values?
|
||||
I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html").html_safe
|
||||
I18n.t("views.prefill_descriptions.edit.possible_values.#{type_champ}_html").html_safe # rubocop:disable Rails/OutputSafety
|
||||
else
|
||||
possible_values.to_sentence
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue