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