Module: Maglev::Section::ContentConcern

Included in:
Maglev::Section
Defined in:
app/models/maglev/section/content_concern.rb

Overview

rubocop:disable Style/ClassAndModuleChildren

Instance Method Summary collapse

Instance Method Details

#build_default_contentObject



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

def build_default_content
  {
    id: SecureRandom.urlsafe_base64(8),
    type: id,
    settings: build_default_settings_content,
    blocks: build_default_blocks_content
  }
end