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-4.1.13 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.12 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.11 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.10 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.9 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.8 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.7 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.6 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.5 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.4 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.3 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.2 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.1 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.1.0 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.0.8 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.0.7 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.0.6 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.0.5 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.0.4 app/services/promethee/structure_upgrader/components/image.rb
promethee-4.0.3 app/services/promethee/structure_upgrader/components/image.rb