Module: Iron::ContentType::Exportable

Extended by:
ActiveSupport::Concern
Included in:
Iron::ContentType
Defined in:
app/models/iron/content_type/exportable.rb

Instance Method Summary collapse

Instance Method Details

#export_attributesObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/models/iron/content_type/exportable.rb', line 5

def export_attributes
  {
    handle:,
    name:,
    type: type.demodulize.underscore,
    description:,
    icon:,
    web_publishing_enabled:,
    base_path:,
    title_field_handle: title_field_definition&.handle,
    web_page_title_field_handle: web_page_title_field_definition&.handle,
    field_definitions: field_definitions.ranked.map(&:export_attributes)
  }
end