Method: Maglev::PageComponent#sections

Defined in:
app/components/maglev/page_component.rb

#sectionsObject

Sections within a dropzone



20
21
22
23
24
25
26
27
# File 'app/components/maglev/page_component.rb', line 20

def sections
  @sections ||= page_sections.map do |attributes|
    definition = theme.sections.find(attributes['type'])
    next unless definition

    build_section(definition, attributes)
  end.compact
end