Module: Maglev::SectionsConcern

Included in:
Page, Site
Defined in:
app/models/concerns/maglev/sections_concern.rb

Overview

rubocop:disable Style/ClassAndModuleChildren

Instance Method Summary collapse

Instance Method Details

#prepare_sectionsObject



5
6
7
8
9
10
11
12
# File 'app/models/concerns/maglev/sections_concern.rb', line 5

def prepare_sections
  # NOTE: pages defined in the theme definition
  # don't include the ids for sections/blocks
  self.sections ||= [] # NOTE: the self is mandatory here
  sections.each do |section|
    prepare_section(section)
  end
end