Class: Maglev::SetupPages

Inherits:
Object
  • Object
show all
Includes:
Injectable
Defined in:
app/services/maglev/setup_pages.rb

Overview

Create the default pages of the theme. Called by the GenerateSite service.

Instance Method Summary collapse

Instance Method Details

#callObject



14
15
16
17
18
19
20
# File 'app/services/maglev/setup_pages.rb', line 14

def call
  pages&.map do |page_attributes|
    create_page(
      attributes_in_all_locales(page_attributes.with_indifferent_access)
    )
  end
end