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(:checkbox),
|
||||||
TypeDeChamp.type_champs.fetch(:drop_down_list),
|
TypeDeChamp.type_champs.fetch(:drop_down_list),
|
||||||
TypeDeChamp.type_champs.fetch(:regions),
|
TypeDeChamp.type_champs.fetch(:regions),
|
||||||
TypeDeChamp.type_champs.fetch(:repetition),
|
TypeDeChamp.type_champs.fetch(:repetition)
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ class TypesDeChamp::PrefillRepetitionTypeDeChamp < TypesDeChamp::PrefillTypeDeCh
|
||||||
end
|
end
|
||||||
|
|
||||||
def possible_values_sentence
|
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
|
end
|
||||||
|
|
||||||
def example_value
|
def example_value
|
||||||
|
|
|
@ -38,7 +38,7 @@ class TypesDeChamp::PrefillTypeDeChamp < SimpleDelegator
|
||||||
|
|
||||||
def possible_values_sentence
|
def possible_values_sentence
|
||||||
if too_many_possible_values?
|
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
|
else
|
||||||
possible_values.to_sentence
|
possible_values.to_sentence
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue