Sha256: bd1b1b1512963fae2d46e285d0a3a7d3445b1e3763461b4c2046218f0ceb2e46

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

module Workarea
  decorate Storefront::ProductViewModel::CacheKey, with: :browse_option do
    private

    def option_parts
      option = @product.browse_option
      return super unless option.present? && @options[option].present?

      super.unshift(@options[option])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-browse_option-2.1.7 app/view_models/workarea/storefront/product_view_model/cache_key.decorator
workarea-browse_option-2.1.6 app/view_models/workarea/storefront/product_view_model/cache_key.decorator