Class: Maglev::SetupPages
- Inherits:
-
Object
- Object
- Maglev::SetupPages
- 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
#call ⇒ Object
15 16 17 18 19 |
# File 'app/services/maglev/setup_pages.rb', line 15 def call pages&.map do |page_attributes| create_page_with_sections(page_attributes) end end |