Class: Promethee::StructureUpgrader::Components::Collection
- Defined in:
- app/services/promethee/structure_upgrader/components/collection.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
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/services/promethee/structure_upgrader/components/collection.rb', line 14 def upgraded_attributes { 'items_per_line' => { 'collection' => [ { 'label' => '2', 'value' => 2 }, { 'label' => '3', 'value' => 3 }, { 'label' => '4', 'value' => 4 }, { 'label' => '6', 'value' => 6 } ], 'searchable' => false, 'translatable' => false, 'type' => 'enum', 'value' => attribute('items_per_line') } } end |