Sha256: 4210b12d417ffa89c8b7dc9bc371c5697576ba4d6c613b247ad3931c4237618c
Contents?: true
Size: 424 Bytes
Versions: 52
Compression:
Stored size: 424 Bytes
Contents
module Spree class TaxonImage < Asset include Configuration::ActiveStorage include Rails.application.routes.url_helpers def styles self.class.styles.map do |_, size| width, height = size[/(\d+)x(\d+)/].split('x') { url: polymorphic_path(attachment.variant(resize: size), only_path: true), width: width, height: height } end end end end
Version data entries
52 entries across 52 versions & 1 rubygems