Sha256: 3dacb9a74cea3e8006ed550eadf5db936eea8e7b522c6a229b10925ed805e9e1

Contents?: true

Size: 837 Bytes

Versions: 43

Compression:

Stored size: 837 Bytes

Contents

# Image Component
# ================
#
# V3
# -----
#
# {
#   image: {
#     id: undefined,
#     name: ''
#   },
#   searchable_alt: '',
#   searchable_caption: ''
# }
#

module Promethee::StructureUpgrader::Components
  class Image < Base
    def upgraded_attributes
      {
        'image' => {
          'searchable' => false,
          'translatable' => false,
          'type' => 'blob',
          value: attribute('image')
        },
        'alt' => {
          'searchable' => true,
          'translatable' => true,
          'type' => 'string',
          'value' => string_attribute('searchable_alt')
        },
        'caption' => {
          'searchable' => true,
          'translatable' => true,
          'type' => 'string',
          'value' => string_attribute('searchable_caption')
        }
      }
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
promethee-5.1.1 app/services/promethee/structure_upgrader/components/image.rb
promethee-5.1.0 app/services/promethee/structure_upgrader/components/image.rb
promethee-5.0.2 app/services/promethee/structure_upgrader/components/image.rb
promethee-5.0.1 app/services/promethee/structure_upgrader/components/image.rb
promethee-5.0.0 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.28 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.27 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.26 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.25 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.24 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.23 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.22 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.21 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.20 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.19 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.18 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.17 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.16 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.15 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.14 app/services/promethee/structure_upgrader/components/image.rb