Sha256: 8ec11ca0759dce9778bb9c8d2f5bbd130d42759dff264f97515b0460387ebffd

Contents?: true

Size: 405 Bytes

Versions: 62

Compression:

Stored size: 405 Bytes

Contents

module Workarea
  module Storefront
    module ContentBlocks
      class TaxonomyViewModel < ContentBlockViewModel
        include TaxonLookup

        def left_image?
          data[:image].present? && data[:image_position].casecmp('left').zero?
        end

        def right_image?
          data[:image].present? && data[:image_position].casecmp('right').zero?
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.4.13 app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb
workarea-storefront-3.4.12 app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb