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
-
#export_attributes ⇒ Object
Blank attributes and false flags are omitted: schema files stay canonical and hand-written files don’t churn under the development auto-dump.
Instance Method Details
#export_attributes ⇒ Object
Blank attributes and false flags are omitted: schema files stay canonical and hand-written files don’t churn under the development auto-dump.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/models/iron/content_type/exportable.rb', line 7 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) }.compact_blank end |