Sha256: 06ea9f7485126848713ec50ae50e8a0aacc9bc63094b71987823a0a80dd023c7

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

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

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

      super.unshift(value.optionize)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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