fix(type_de_champ): type_champs_private -> types_de_champ_private

This commit is contained in:
Paul Chavard 2023-04-25 11:59:32 +02:00
parent f5ffd1ad5e
commit eae58ae5b0

View file

@ -440,7 +440,7 @@ class TypeDeChamp < ApplicationRecord
end
def current_section_level
tdcs = private? ? revision.type_champs_private.to_a : revision.types_de_champ_public.to_a
tdcs = private? ? revision.types_de_champ_private.to_a : revision.types_de_champ_public.to_a
previous_section_level(tdcs.take(tdcs.find_index(self)))
end