Class: Promethee::StructureUpgrader::Components::Text

Inherits:
Base
  • Object
show all
Defined in:
app/services/promethee/structure_upgrader/components/text.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_attributesObject



14
15
16
17
18
19
20
21
22
23
# File 'app/services/promethee/structure_upgrader/components/text.rb', line 14

def upgraded_attributes
  {
    'body' => {
      'searchable' => true,
      'translatable' => true,
      'type' => 'text',
      'value' => attribute('searchable_body')
    }
  }
end