Sha256: 5e99f40ef8993a55b5d6585dc1999d1adad25f46171e711763ecaf259ac11a33

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

module Workarea
  module Storefront
    module ImageHelper
      def image_set_tag(source, srcset = {}, options = {})
        srcset = srcset.map { |src, size| "#{path_to_image(src)} #{size}" }.join(', ')
        image_tag(source, options.merge(srcset: srcset))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.2.1 app/helpers/workarea/storefront/image_helper.rb
workarea-nvy_theme-1.2.0 app/helpers/workarea/storefront/image_helper.rb
workarea-nvy_theme-1.1.4 app/helpers/workarea/storefront/image_helper.rb
workarea-nvy_theme-1.1.3 app/helpers/workarea/storefront/image_helper.rb
workarea-nvy_theme-1.1.2 app/helpers/workarea/storefront/image_helper.rb