fix(type_de_champ): type_champs_private -> types_de_champ_private
This commit is contained in:
parent
f5ffd1ad5e
commit
eae58ae5b0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue