Sha256: 7c464833234a02833f42b96e38528fe86bbc9f543938c87c202b2c480d1328dc
Contents?: true
Size: 466 Bytes
Versions: 6
Compression:
Stored size: 466 Bytes
Contents
module Spree class TaxonImage < Asset include Spree::TaxonImage::Configuration::ActiveStorage include Rails.application.routes.url_helpers include Spree::ImageMethods def styles self.class.styles.map do |_, size| width, height = size[/(\d+)x(\d+)/].split('x').map(&:to_i) { url: generate_url(size: size), size: size, width: width, height: height } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems