Sha256: daa4036ac4aed6e33add9b03d836df3c08189673fb169cad0ab92b3137201621
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
module Workarea decorate Storefront::ProductViewModel, with: :browse_option do def browse_link_options @browse_link_options_with_browse_option ||= super.tap do |link_options| link_options[browse_option.optionize] = options[:option] if options[:option].present? end end def current_browse_option return nil unless browse_option.present? options[:option] || options[browse_option.optionize] end end end
Version data entries
5 entries across 5 versions & 1 rubygems