remove sections ok

This commit is contained in:
2022-12-02 19:09:58 +02:00
parent 2eaa344ed0
commit 3d61e44e09
5 changed files with 25 additions and 4 deletions

View File

@ -43,6 +43,15 @@ module Merged
section
end
def remove_section(section)
from_index = section.index
@sections.delete_at(from_index)
@content.delete_at(from_index)
@sections.each_with_index do |section, index|
section.set_index(index)
end
end
def first_template
@content[0]["template"]
end