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
# File 'app/services/maglev/setup_pages.rb', line 14

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