Class: Promethee::StructureUpgrader::Components::Aside
- Defined in:
- app/services/promethee/structure_upgrader/components/aside.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #upgrade, #upgraded_data
Constructor Details
This class inherits a constructor from Promethee::StructureUpgrader::Components::Base
Instance Method Details
#upgraded_attributes ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'app/services/promethee/structure_upgrader/components/aside.rb', line 17 def upgraded_attributes { 'visible_content' => { 'searchable' => true, 'translatable' => true, 'type' => 'text', 'value' => attribute('searchable_visible_content') }, 'collapsed_content' => { 'searchable' => true, 'translatable' => true, 'type' => 'text', 'value' => attribute('searchable_collapsed_content') }, 'open_label' => { 'searchable' => true, 'translatable' => true, 'type' => 'string', 'value': string_attribute('searchable_open_label') }, 'open_label_position' => { 'collection' => [ { 'label' => 'Left', 'value' => 'left' }, { 'label' => 'Center', 'value' => 'center' }, { 'label' => 'Right', 'value' => 'right' } ], 'searchable' => false, 'translatable' => false, 'type' => 'enum', 'value' => attribute('open_label_position') } } end |